note 74189 added to function.ldap-bind
| From: | Teemu at osu1 dot php dot net | Date: | Thu, 29 Mar 2007 08:44:05 +0000 |
| Subject: | note 74189 added to function.ldap-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124909@lists.php.net to get a copy of this message | ||
Example of connecting and searching AD
$con = ldap_connect('ad.domain.com');
ldap_set_option($con, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($con, LDAP_OPT_REFERRALS, 0);
ldap_bind($con, 'user@DOMAIN.COM', 'clear password');
ldap_search($con, 'DC=domain,DC=com', '(uniqueMember=user)');
----
Server IP: 80.81.171.181
Probable Submitter: 130.232.3.146
----
Manual Page -- http://www.php.net/manual/en/function.ldap-bind.php
Edit -- https://master.php.net/note/edit/74189
Del: integrated -- https://master.php.net/note/delete/74189/integrated
Del: useless -- https://master.php.net/note/delete/74189/useless
Del: bad code -- https://master.php.net/note/delete/74189/bad+code
Del: spam -- https://master.php.net/note/delete/74189/spam
Del: non-english -- https://master.php.net/note/delete/74189/non-english
Del: in docs -- https://master.php.net/note/delete/74189/in+docs
Del: other reasons-- https://master.php.net/note/delete/74189
Reject -- https://master.php.net/note/reject/74189
Search -- https://master.php.net/manage/user-notes.php