jdk/src/share/classes/com/sun/jndi/ldap/LdapSearchEnumeration.java
author prappo
Fri, 01 Aug 2014 22:32:51 +0100
changeset 25808 e113d0a0fde0
parent 23916 2cec82cd2052
permissions -rw-r--r--
8054158: Fix typos in JNDI-related packages Reviewed-by: rriggs, vinnie
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
10324
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
     2
 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package com.sun.jndi.ldap;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
23916
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
    28
import java.security.AccessControlContext;
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
    29
import java.security.AccessController;
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
    30
import java.security.PrivilegedActionException;
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
    31
import java.security.PrivilegedExceptionAction;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.util.Vector;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import javax.naming.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import javax.naming.directory.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
import javax.naming.spi.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import javax.naming.ldap.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
import javax.naming.ldap.LdapName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
import com.sun.jndi.toolkit.ctx.Continuation;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
10324
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
    41
final class LdapSearchEnumeration
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
    42
        extends AbstractLdapNamingEnumeration<SearchResult> {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    private Name startName;             // prefix of names of search results
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    private LdapCtx.SearchArgs searchArgs = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
23916
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
    47
    private final AccessControlContext acc = AccessController.getContext();
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
    48
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    LdapSearchEnumeration(LdapCtx homeCtx, LdapResult search_results,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        String starter, LdapCtx.SearchArgs args, Continuation cont)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
        throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
        super(homeCtx, search_results,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
              args.name, /* listArg */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
              cont);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
        // fully qualified name of starting context of search
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
        startName = new LdapName(starter);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        searchArgs = args;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
10324
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
    62
    @Override
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
    63
    protected SearchResult createItem(String dn, Attributes attrs,
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
    64
                                      Vector<Control> respCtls)
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
    65
            throws NamingException {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        Object obj = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
        String relStart;         // name relative to starting search context
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
        String relHome;          // name relative to homeCtx.currentDN
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        boolean relative = true; // whether relative to currentDN
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
        // need to strip off all but lowest component of dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
        // so that is relative to current context (currentDN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
            Name parsed = new LdapName(dn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
            // System.err.println("dn string: " + dn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
            // System.err.println("dn name: " + parsed);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
            if (startName != null && parsed.startsWith(startName)) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
                relStart = parsed.getSuffix(startName.size()).toString();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
                relHome = parsed.getSuffix(homeCtx.currentParsedDN.size()).toString();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
                relative = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
                relHome = relStart =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
                    LdapURL.toUrlString(homeCtx.hostname, homeCtx.port_number,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
                    dn, homeCtx.hasLdapsScheme);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        } catch (NamingException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
            // could not parse name
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
            relative = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
            relHome = relStart =
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
                LdapURL.toUrlString(homeCtx.hostname, homeCtx.port_number,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
                dn, homeCtx.hasLdapsScheme);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        // Name relative to search context
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        CompositeName cn = new CompositeName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        if (!relStart.equals("")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
            cn.add(relStart);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        // Name relative to homeCtx
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        CompositeName rcn = new CompositeName();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
        if (!relHome.equals("")) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
            rcn.add(relHome);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        //System.err.println("relStart: " + cn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
        //System.err.println("relHome: " + rcn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        // Fix attributes to be able to get schema
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        homeCtx.setParents(attrs, rcn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
        // only generate object when requested
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
        if (searchArgs.cons.getReturningObjFlag()) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
            if (attrs.get(Obj.JAVA_ATTRIBUTES[Obj.CLASSNAME]) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                // Entry contains Java-object attributes (ser/ref object)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                // serialized object or object reference
23916
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   121
                try {
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   122
                    obj = AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   123
                        @Override
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   124
                        public Object run() throws NamingException {
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   125
                            return Obj.decodeObject(attrs);
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   126
                        }
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   127
                    }, acc);
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   128
                } catch (PrivilegedActionException e) {
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   129
                    throw (NamingException)e.getException();
2cec82cd2052 8031395: Enhance LDAP processing
weijun
parents: 10324
diff changeset
   130
                }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
            if (obj == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                obj = new LdapCtx(homeCtx, dn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
            // Call getObjectInstance before removing unrequested attributes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
            try {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                // rcn is either relative to homeCtx or a fully qualified DN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                obj = DirectoryManager.getObjectInstance(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                    obj, rcn, (relative ? homeCtx : null),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                    homeCtx.envprops, attrs);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
            } catch (NamingException e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                throw e;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
            } catch (Exception e) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                NamingException ne =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                    new NamingException(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                            "problem generating object using object factory");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                ne.setRootCause(e);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
                throw ne;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
            // remove Java attributes from result, if necessary
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            // Even if CLASSNAME attr not there, there might be some
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            // residual attributes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
            String[] reqAttrs;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            if ((reqAttrs = searchArgs.reqAttrs) != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
                // create an attribute set for those requested
25808
e113d0a0fde0 8054158: Fix typos in JNDI-related packages
prappo
parents: 23916
diff changeset
   159
                Attributes rattrs = new BasicAttributes(true); // ignore case
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
                for (int i = 0; i < reqAttrs.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
                    rattrs.put(reqAttrs[i], null);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
                for (int i = 0; i < Obj.JAVA_ATTRIBUTES.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
                    // Remove Java-object attributes if not requested
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
                    if (rattrs.get(Obj.JAVA_ATTRIBUTES[i]) == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                        attrs.remove(Obj.JAVA_ATTRIBUTES[i]);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
         * name in search result is either the stringified composite name
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
         * relative to the search context that can be passed directly to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
         * methods of the search context, or the fully qualified DN
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
         * which can be used with the initial context.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
        SearchResult sr;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        if (respCtls != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
            sr = new SearchResultWithControls(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                (relative ? cn.toString() : relStart), obj, attrs,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                relative, homeCtx.convertControls(respCtls));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
            sr = new SearchResult(
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                (relative ? cn.toString() : relStart),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                obj, attrs, relative);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
        sr.setNameInNamespace(dn);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
        return sr;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
10324
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   193
    @Override
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    public void appendUnprocessedReferrals(LdapReferralException ex) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
        // a referral has been followed so do not create relative names
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        startName = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
        super.appendUnprocessedReferrals(ex);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
10324
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   201
    @Override
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   202
    protected LdapSearchEnumeration getReferredResults(
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   203
            LdapReferralContext refCtx) throws NamingException {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
        // repeat the original operation at the new context
10324
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   205
        return (LdapSearchEnumeration)refCtx.search(
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   206
                searchArgs.name, searchArgs.filter, searchArgs.cons);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
10324
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   209
    @Override
e28265130e4f 7072353: JNDI libraries do not build with javac -Xlint:all -Werror
jjg
parents: 5506
diff changeset
   210
    protected void update(AbstractLdapNamingEnumeration<SearchResult> ne) {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        super.update(ne);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        // Update search-specific variables
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        LdapSearchEnumeration se = (LdapSearchEnumeration)ne;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
        startName = se.startName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
    void setStartName(Name nm) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        startName = nm;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
}