PHP and Active Directory - Page Size attribute

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
datrigger
Forum Newbie
Posts: 1
Joined: Thu Jan 11, 2007 9:22 am

PHP and Active Directory - Page Size attribute

Post by datrigger »

Hi,
I'm running into an odd problem.. and I'm not sure how to work correct this. I currently have an application that does LDAP queries against Active Directory. Currently, Active Directory only returns 1000 records as a maximum but I need to get more than 1000 records. I've seen multiple references of this with other programming languages, and the solution was to introduce record the 'Page Size' property. I'm not sure how to make this work using PHP's LDAP functionality. I've tried with the ldap_search() and including sizelimit variable, but that only overrides if it's less than the server setting. So I can't push it over 1000, adn it seems not to be the same as 'page size' property.

Has anyone experienced this problem with AD or an LDAP server, or succeeded by getting more results than the sizelimit LDAP variable offers with PHP ?

Thanks in advance.
Post Reply