note 39665 deleted from function.ldap-bind by didou
| From: | didou@php.net | Date: | Fri, 06 Feb 2004 17:39:05 +0000 |
| Subject: | note 39665 deleted from function.ldap-bind by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64735@lists.php.net to get a copy of this message | ||
Note Submitter: cas1650@dont-spam-me.nebrwesleyan.edu
----
The documentation for this makes it look like you can just give a bare username for the first
argument. At least using LDAP v3, that will give you an invalid DN syntax error; it expects a full
distinguished name, not just the username. You'll want to do something like this:
$ldaprdn = 'cn=uname,ou=people,dc=example,dc=com'; // ldap rdn or dn
.
.
.
$ldapbind = ldap_bind($ldapconn, $ldaprdn, $ldappass);
.
.
.