note 23159 added to ref.ldap

From: Date: Wed, 10 Jul 2002 21:06:33 +0000
Subject: note 23159 added to ref.ldap
Groups: php.notes 
Request: Send a blank email to php-notes+get-32862@lists.php.net to get a copy of this message
You can authenticate to a Windows 2000 domain's ldap server easily by using the simplified netbios form of the username. Somebody written: When authenticating to a Win2k LDAP server, the name of the person must be the FULL NAME in the dn NO. You can use this form: $user = "DOMAINNAME\\username" $password = "Password_of_user"; if (!$connect = ldap_connect("<server>", <port>)) { //error exit; } if (!$res = @ldap_bind($ldap, $user, $password)) { //error exit; } It works fine with Active Directory, we use it. -- http://www.php.net/manual/en/ref.ldap.php http://master.php.net/manage/user-notes.php?action=edit+23159 http://master.php.net/manage/user-notes.php?action=delete+23159 http://master.php.net/manage/user-notes.php?action=reject+23159

« previous php.notes (#32862) next »