Have a Net::LDAP script that needs to query AD and gather a list of all
users then shove that information into an array for processing. What I'm
doing at the moment is to search for sAMAccountName=* however I get the
following from the script:

06-17-2005 11:10:09: main(): LDAP search failed on gsbad1:389
06-17-2005 11:10:09: main(): LDAP error code is: 4
06-17-2005 11:10:09: main(): LDAP error text is: Sizelimit exceeded

>From what I've seen on MSDN there is a way to increase the sizelimit of
the result set, however everything they show is either ADSI or for the
MS ldap manager widget.

Tried only searching for the letter a* and setting the sizelimit param
in the Net::LDAP search:

my $mesg = $ldap->search( sizelimit => 35000,
                          base      => "$basedn",
                          filter    => '(&(sAMAccountName=' . "a*" .
'))'
                         );

Same results. Any thoughts? Maybe a better way to do this? Server
enforced size limit perhaps?

-------------------------------------------------------------
| Darren Young              | http://www.chicagogsb.edu     |
| Senior UNIX Administrator | [EMAIL PROTECTED]   |
| University of Chicago GSB | [EMAIL PROTECTED] |
-------------------------------------------------------------

Reply via email to