Permalink
Browse files

To fix authentication issue when same ldap-attribute is used multiple…

… fields in Moodle.
  • Loading branch information...
1 parent 03877c6 commit 0c70f81c0dc62dbde062bee379c36c08127355e0 paca70 committed Aug 4, 2003
Showing with 3 additions and 1 deletion.
  1. +3 −1 auth/ldap/lib.php
View
@@ -79,7 +79,9 @@ function auth_get_userinfo($username){
$search_attribs = array();
foreach ($attrmap as $key=>$value) {
- array_push($search_attribs, $value);
+ if (!in_array($value, $search_attribs) {
+ array_push($search_attribs, $value);
+ }
}
$user_dn = auth_ldap_find_userdn($ldap_connection, $username);

0 comments on commit 0c70f81

Please sign in to comment.