MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes); patch by Jeff Graham
This commit is contained in:
@@ -150,6 +150,9 @@ class auth_plugin_ldap extends auth_plugin_base {
|
||||
}
|
||||
$ldapval = NULL;
|
||||
foreach ($values as $value) {
|
||||
if ($value == 'dn') {
|
||||
$result[$key] = $user_dn;
|
||||
}
|
||||
if (!array_key_exists($value, $user_entry[0])) {
|
||||
continue; // wrong data mapping!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user