mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-10921 LDAP Auth to Active Directory requires LDAP_OPT_REFERRALS option set
This commit is contained in:
parent
2d675a2331
commit
f6c80923bf
@ -1485,6 +1485,11 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
ldap_set_option($connresult, LDAP_OPT_PROTOCOL_VERSION, $this->config->version);
|
||||
}
|
||||
|
||||
// Fix MDL-10921
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user