click me  

LDAP Searching - Setting the SCOPE Parameter

  Return to LDAP Resources Home Page.


The SCOPE setting is the starting point of an LDAP search and the depth from the base DN to which the search should occur. There are three options (values) that can be assigned to the SCOPE paramter:

BASE:

This value is used to indicate searching only the entry at the base DN, resulting in only that entry being returned (keeping in mind that it also has to meet the search filter criteria!).

If you are using the Netscape LDAP SDK, you can use the constant: LDAPConnection.SCOPE_BASE.

ONE:
This value is used to indicate searching all entries one level under the base DN - but not including the base DN and not including any entries under that one level under the base DN.

If you are using the Netscape LDAP SDK, you can use the constant: LDAPConnection.SCOPE_ONE.

SUBTREE:
This value is used to indicate searching of all entries at all levels under and including the specified base DN.

If you are using the Netscape LDAP SDK, you can use the constant: LDAPConnection.SCOPE_SUB.




Last modified on: Tuesday, 26-Jul-2005 20:23:39 EDT
Page Count: 14980