Applying offset and limit in LDAP search

Hi,

I am searching Active Directory and the result limit is set to 1000 but the result set is more that 1000 so it give me limit exceeds error. Is there a way I can apply some limit or offset sort of thing in it as we do in relational databases. I am working in PHP.

Regards
LVL 9
Shahzad Fateh AliWeb Solutions Architect & Technical Project Manager- VentureDive (Pvt) LtdAsked:
Who is Participating?
 
merowingerConnect With a Mentor Commented:
PHP does not support to customize the page result limits.
So either you change the AD limits, or you have to use another method like VB.
See here:
http://blogs.technet.com/heyscriptingguy/archive/2004/08/24/why-doesn-t-my-search-return-all-my-user-accounts.aspx
0
 
Shahzad Fateh AliWeb Solutions Architect & Technical Project Manager- VentureDive (Pvt) LtdAuthor Commented:
I am not allowed to change the limit due to security issues. also the number of records in total are in millions and it can happen that some time i need to retrieve all of them
0
 
Chris DentConnect With a Mentor PowerShell DeveloperCommented:

Because I was so surprised paging wasn't implemented in PHP...

This discusses the issue and a work-around:

http://sgehrig.wordpress.com/2009/11/06/reading-paged-ldap-results-with-php-is-a-show-stopper/

Chris
0
All Courses

From novice to tech pro — start learning today.