develooper Front page | perl.ldap | Postings from June 2005

Sizelimit Exceeded from Active Directory

Thread Next
From:
Young, Darren
Date:
June 17, 2005 09:31
Subject:
Sizelimit Exceeded from Active Directory
Message ID:
490F3E9EEF01B04598860AAB71777B4E2BF13F@GSBEX.gsb.uchicago.edu
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 | darren.young@chicagogsb.edu   |
| University of Chicago GSB | darren.young@gsb.uchicago.edu |
-------------------------------------------------------------

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About