I'm doing a ldap search by an unindexed key like email as follows:
$dn = 'ou=users,ou=y,o=x';
$filters = '([email protected])';
$just = array ('id');
$sr = ldap_list ($ds_id, $dn, $filters, $just);
and the result is ok if the entry is in the < SERVER_RETURN_LIMIT (=1000 in my case) and is empty if the entry is over the 1k limit. If I do my search by an index parameter like the user's id, the result is always as expected.
What I would like to know if there is any way I can get the expected result when I do a search by an unindexed key no matter how many entries I have and no matter on which position the entry I want to retrieve sits.
I also always get this warning whenever I do a search, no matter the type of key:
Warning: ldap_list() [function.ldap-list]: Partial search results returned: Adminlimit exceeded in...
The warning is displayed if the search is successful also, and the result is always 1 entry. I'm not looking to return more than 1 entry / search.
Hope you folks can shed some light on this. TA!