Re: cvs: pear /Auth package.xml /Auth/Container LDAP.php
| From: | bertrand Gugger | Date: | Tue, 21 Feb 2006 06:00:09 +0000 |
| Subject: | Re: cvs: pear /Auth package.xml /Auth/Container LDAP.php | ||
| References: | 1 | Groups: | php.pear.cvs php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-38432@lists.php.net to get a copy of this message | ||
Hello,
Adam AShley wrote:
aashley Tue Feb 21 02:01:51 2006 UTCModified files: /pear/Auth/Container LDAP.php /pear/Auth package.xml Log:Fix for #6644. Add support for LDAP referals option to aid compatibility with microsoft active directory http://cvs.php.net/viewcvs.cgi/pear/Auth/Container/LDAP.php?r1=1.23&r2=1.24&diff_format=u
@@ -232,6 +236,12 @@
@ldap_set_option($this->conn_id, LDAP_OPT_PROTOCOL_VERSION, $this->options['version']);
}
+ // switch LDAP referrals
+ if (is_bool($this->options['referrals'])) {
+ $this->_debug("Switching to LDAP referrals {$this->options['referrals']}", __LINE__);
+ @ldap_set_option($this->conn_id, LDAP_OPT_REFERRALS, $this->options['referrals']);
+ }
+
Just a litle CS: if the line is too long, please fold it but respect the indentation.
Regards
--
toggg