I'm trying to connect to a Win2K LDAP server to get a list of user accounts and email addresses, to be used in a dynamic company email address book.
I can connect to the LDAP server with no problems, however, when I try to search I always get the same error:
"Warning: ldap_search(): Search: No such object in /var/www/html/intranet/ldap_test.php on line 27"
All of the examples I've found give me errors.
I try this:
$ds=ldap_bind($ldaplink,$username,$password);
$sr=ldap_search($ds,"o=my company, c=UK", "name=joe bloggs");
I always get the afore mentioned error.
I know I'm missing something fundamental, anyone got any ideas?
Cheers