]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9099 LDAP auth does not allow dn in idnumber field (or other user attributes...
authorskodak <skodak>
Thu, 29 Mar 2007 08:42:07 +0000 (08:42 +0000)
committerskodak <skodak>
Thu, 29 Mar 2007 08:42:07 +0000 (08:42 +0000)
auth/ldap/auth.php

index 8f4b09a7569ea28ff1556c900c1d0b0c4ab27995..c107a24c3ff4cf0e5f06951a5b9f14587f3be33c 100644 (file)
@@ -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!
                 }