3.7.3. Scope Previous topic Parent topic Child topic Next topic

This optional parameter allows you to control the search scope used to find the user. The default value is sub.
The permitted options are:
  • base
  • one
  • sub or subtree
  • children Requires Net::LDAP 0.48 or better and LDAPv3 subordinate feature extension
Here is an example of using Scope:
# We know where the entry should be
Scope base