MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes); patch by Jeff Graham

This commit is contained in:
skodak
2007-03-29 08:40:36 +00:00
parent fcdca8b2ba
commit ac594757cb
+3
View File
@@ -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!
}