From a8d58c58e7461de56281d8c1dd7698ab3d068926 Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 29 Mar 2007 08:42:07 +0000 Subject: [PATCH] MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes); patch by Jeff Graham; merged from MOODLE_18_STABLE --- auth/ldap/auth.php | 3 +++ 1 file changed, 3 insertions(+) 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! } -- 2.39.5