note 58645 deleted from ref.ldap by cece
| From: | cece@php.net | Date: | Thu, 10 Nov 2005 16:25:38 +0000 |
| Subject: | note 58645 deleted from ref.ldap by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98390@lists.php.net to get a copy of this message | ||
Note Submitter:
----
I have just spent a long time using the following to bind to Active Directory on Win2003 Server:
$user = "domainname\username";
$password = "Password";
ldap_bind($conn, $user,"$password");
The bind returned successfully but I could only use it to run ldap_searches as domain admin, e.g.
$user = "domainname\admin";
When I used a normal user account the bind still succeeded but the ldap_search returned false.
Changing the $user to use double-back-slashes fixed it:
$user = "domainname\\user";