Skip to content

Commit

Permalink
MDL-9099 LDAP auth does not allow dn in idnumber field (or other user…
Browse files Browse the repository at this point in the history
… attributes); patch by Jeff Graham; merged from MOODLE_18_STABLE
  • Loading branch information
skodak committed Mar 29, 2007
1 parent 80efbf9 commit a8d58c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auth/ldap/auth.php
Expand Up @@ -150,6 +150,9 @@ function get_userinfo($username) {
}
$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!
}
Expand Down

0 comments on commit a8d58c5

Please sign in to comment.