Permalink
Browse files

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

…rectory

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.
  • Loading branch information...
1 parent a727aab commit eac3177bc1570efba0a4dfd243592052a1bf1cf5 @iarenaza iarenaza committed Sep 24, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 auth/cas/auth.php
View
3 auth/cas/auth.php
@@ -488,6 +488,9 @@ function ldap_connect($binddn='',$bindpwd='') {
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;

0 comments on commit eac3177

Please sign in to comment.