note 45929 added to ref.ldap
| From: | JimmyWimentaOei at osu1 dot php dot net | Date: | Thu, 23 Sep 2004 19:32:42 +0000 |
| Subject: | note 45929 added to ref.ldap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77262@lists.php.net to get a copy of this message | ||
If you want to disable/enable chase referral option, you need to first set the protocol version to
version 3, otherwise the LDAP_OPT_REFERRALS option will not have any effect. This is especially true
for querying MS Active Directory.
<?php
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ds, LDAP_OPT_REFERRALS, 0);
?>
And as always, these should be called after connect but before binding.
----
Manual Page -- http://www.php.net/manual/en/ref.ldap.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45929
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45929&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45929&report=yes
Search -- http://master.php.net/manage/user-notes.php