PHP and Active Directory - Page Size attribute
Posted: Thu Jan 11, 2007 9:41 am
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.
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.