Applying offset and limit in LDAP search


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.

Shahzad Fateh AliWeb Solutions Architect & Technical Project Manager- VentureDive (Pvt) LtdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Chris DentPowerShell DeveloperCommented:

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

This discusses the issue and a work-around:

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.