Re: ldap_search(): Partial search results returned: Sizelimit exceeded

From: Date: Tue, 17 Jul 2007 22:48:39 +0000
Subject: Re: ldap_search(): Partial search results returned: Sizelimit exceeded
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-259046@lists.php.net to get a copy of this message
On Tue, July 17, 2007 4:51 pm, Jay Blanchard wrote: > Perhaps mistakenly for a project that I am trying to do I want to list > all users in the Active Directory. It works pretty well with one > exception, the error ldap_search(): Partial search results returned: > Sizelimit exceeded. > > Now, I know that I can page through (I would have to figure out a > clever > way to display to the user) these. > > I have read some stuff that says the limit is hard coded in AD, so > there > is no way around it. I just wanted to check with you folks to see if > you > had any clever ideas on how to work around this. Totally crude hack... If you get that message, search for users whose username starts with 'A', then 'B', then 'C', ... :-) You could even provide an alpha index at the top/side navbar when needed, and then have a more natural program flow. You'd still have an issue if there were "too many" under any one letter though... :-( Maybe ask an ActiveDirectory mailing list, if one exists, since it's really more in their ballpark than PHP's. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#259046) next »