From ac594757cb2508d12926853830fa1d113c832c9c Mon Sep 17 00:00:00 2001 From: skodak Date: Thu, 29 Mar 2007 08:40:36 +0000 Subject: [PATCH] MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes); patch by Jeff Graham --- auth/ldap/auth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 8f4b09a7569..c107a24c3ff 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! }