in reply to NET::LDAP not returning all results

Here are a few things to try (no guarantee they will help):

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; }
Update: ALso try to search for ONLY Groups:
filter => "(&(objectCategory=group)(cn=Domain Users))",
I did not see an "entry" method in the object returned by LDAP search. Try "entries" as in my code above.

        If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
              -Norm Crosby