auth/cas MDL-18643 CAS synchronization fails with Microsoft Active Directory

The bug was fixed in LDAP auth plugin but was not applied to CAS auth too.

Thanks to Jose Garcia for the bug report and proposed fix.
This commit is contained in:
Inaki
2010-09-24 12:46:46 +00:00
parent a727aabc50
commit eac3177bc1
+3
View File
@@ -488,6 +488,9 @@ if ( !is_object($PHPCAS_CLIENT) ) {
if (!empty($this->config->version)) {
ldap_set_option($connresult, LDAP_OPT_PROTOCOL_VERSION, $this->config->version);
}
if ($this->config->user_type == 'ad') {
ldap_set_option($connresult, LDAP_OPT_REFERRALS, 0);
}
if (!empty($binddn)) {
//bind with search-user
//$debuginfo .= 'Using bind user'.$binddn.'and password:'.$bindpwd;