From: skodak Date: Thu, 29 Mar 2007 08:42:07 +0000 (+0000) Subject: MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a8d58c58e7461de56281d8c1dd7698ab3d068926;p=moodle.git MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes); patch by Jeff Graham; merged from MOODLE_18_STABLE --- diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 8f4b09a756..c107a24c3f 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -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! }