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 8f4b09a7569ea..c107a24c3ff4c 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -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! }