I was messing around with ldap_search and PHP and I noticed that even though you can limit the amount of results (with the $sizelimit attribute), I am unable to pick a range for that size limit.
Code:
$result = ldap_search($ldapconnect,$ldaptree, "(|(cn=a*)(cn=b*))", $attributes, 0, 100) or die ("Error in search query: ".ldap_error($ldapconnect));
To be more specific. I'm searching an LDAP database that has 60 thousand entries, I can always do an array_slice on the preceding result, but that takes forever considering it still pulls from almost the entire DB. Is there a way to grab the 2nd 100 entries and the third and so on?
Thank you!
Joe