Permalink
Browse files

support OpenLDAP extension: scope => "children"

  • Loading branch information...
1 parent d5d8955 commit 78fc80e1723d6cb43c4bc501874eaf467842a694 @marschap marschap committed Sep 18, 2012
Showing with 10 additions and 3 deletions.
  1. +1 −1 lib/Net/LDAP.pm
  2. +7 −1 lib/Net/LDAP.pod
  3. +2 −1 lib/Net/LDAP/ASN.pm
View
@@ -459,7 +459,7 @@ sub bind {
}
-my %scope = qw(base 0 one 1 single 1 sub 2 subtree 2);
+my %scope = qw(base 0 one 1 single 1 sub 2 subtree 2 children 3);
my %deref = qw(never 0 search 1 find 2 always 3);
sub search {
View
@@ -571,7 +571,7 @@ The result is an object of class L<Net::LDAP::Search>.
The DN that is the base object entry relative to which the search is
to be performed.
-=item scope =E<gt> 'base' | 'one' | 'sub'
+=item scope =E<gt> 'base' | 'one' | 'sub' | 'children'
By default the search is performed on the whole tree below
the specified base object. This maybe changed by specifying a C<scope>
@@ -592,6 +592,12 @@ Search the entries immediately below the base object.
Search the whole tree below (and including) the base object. This is
the default.
+=item children
+
+Search the whole subtree below the base object, excluding the base object itself.
+
+Note: I<children> scope requires LDAPv3 subordinate feature extension.
+
=back
=item deref =E<gt> 'never' | 'search' | 'find' | 'always'
View
@@ -182,7 +182,8 @@ $asn->prepare(<<LDAP_ASN) or die $asn->error;
scope ENUMERATED {
baseObject (0),
singleLevel (1),
- wholeSubtree (2) }
+ wholeSubtree (2),
+ subOrdinates (3) } -- OpenLDAP extension
derefAliases ENUMERATED {
neverDerefAliases (0),
derefInSearching (1),

0 comments on commit 78fc80e

Please sign in to comment.