I am working on a page to use the ldap_search function which is supposed to return either the number of results or a false. I have it working properly if there is at least one result but if nothing is found it prints:
Warning: LDAP: Unable to perform the search: No such object in /var/www/html/search.php on line 353
I have been trying to clean everything up to put my own user friendly messages up but I can't seem to get rid of this one. I have isolated the problem to the one line but I don't remember the help file mentioning that it will echo a message if the search fails.
$sr=ldap_search($ds, $SearchBase, $searchstring);
Any ideas?