Update: ALso try to search for ONLY Groups:use strict; # Always a good idea my $mesg = $ldap -> search(filter => "(cn=Domain Users)", # Take ou +t the & , since the filter has only ONE entity base => "dc=domain,dc=local", sizelimit=> 9999, # Try adding + this scope => "subtree" ); # Try adding + this die $mesg->error if $mesg->code; # Always error-check foreach my $entry ($mesg->entries) { $entry->dump; }
I did not see an "entry" method in the object returned by LDAP search. Try "entries" as in my code above.filter => "(&(objectCategory=group)(cn=Domain Users))",
If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
-Norm Crosby
In reply to Re: NET::LDAP not returning all results
by NetWallah
in thread NET::LDAP not returning all results
by schnibitz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |