note 19388 added to function.ldap-bind
| From: | tpiper at pinnacle dot couk | Date: | Tue, 26 Feb 2002 12:19:28 +0000 |
| Subject: | note 19388 added to function.ldap-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27053@lists.php.net to get a copy of this message | ||
An example to help you authenticate against M$ Exchange, rather than use anonymous mode...
you will need to create an NT domain member (I've called it ldapquery) and give it search
permission in the LDAP protocol settings in Exchange.
then:
$ds=ldap_connect ("<exchange server>");
$r=@ldap_bind($ds,"cn=ldapquery, o=<your organisation>, c=<your country>,
","<the password for ldapquery account>");
we've tested this on Exchange 5.5SP3.
--
http://www.php.net/manual/en/function.ldap-bind.php
http://master.php.net/manage/user-notes.php?action=edit+19388
http://master.php.net/manage/user-notes.php?action=delete+19388
http://master.php.net/manage/user-notes.php?action=reject+19388