note 39665 added to function.ldap-bind
| From: | cas1650 at dont-spam-me dot nebrwesleyan dot edu | Date: | Fri, 06 Feb 2004 17:14:05 +0000 |
| Subject: | note 39665 added to function.ldap-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-64734@lists.php.net to get a copy of this message | ||
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);
.
.
.
----
Manual Page -- http://www.php.net/manual/en/function.ldap-bind.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39665
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39665&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39665&report=yes
Search -- http://master.php.net/manage/user-notes.php