note 72795 added to function.ldap-bind
| From: | john dot hargrove at sellingsource dot com | Date: | Thu, 01 Feb 2007 23:09:47 +0000 |
| Subject: | note 72795 added to function.ldap-bind | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122495@lists.php.net to get a copy of this message | ||
Note that you have to specify the protocol version prior to making a call to ldap_bind, when the
server is expecting LDAP protocol version 3. If you do not, you will receive a warning and fail to
bind, such as:
ldap_bind(): Unable to bind to server: Protocol error
In order to avoid this, make this call:
<?php
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
?>
Where $ds is the result returned by ldap_connect(...);
----
Server IP: 69.147.83.197
Probable Submitter: 71.4.57.161
----
Manual Page -- http://www.php.net/manual/en/function.ldap-bind.php
Edit -- https://master.php.net/note/edit/72795
Del: integrated -- https://master.php.net/note/delete/72795/integrated
Del: useless -- https://master.php.net/note/delete/72795/useless
Del: bad code -- https://master.php.net/note/delete/72795/bad+code
Del: spam -- https://master.php.net/note/delete/72795/spam
Del: non-english -- https://master.php.net/note/delete/72795/non-english
Del: in docs -- https://master.php.net/note/delete/72795/in+docs
Del: other reasons-- https://master.php.net/note/delete/72795
Reject -- https://master.php.net/note/reject/72795
Search -- https://master.php.net/manage/user-notes.php