Skip to content
Browse files

Ask only naminattribute when searching for user.

  • Loading branch information...
1 parent da7b210 commit fdc60fd20dd257fbce211b43649723688a56a10c paca70 committed Aug 3, 2003
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/ldap/lib.php
View
4 auth/ldap/lib.php
@@ -280,11 +280,11 @@ function auth_ldap_find_userdn ($ldap_connection, $username){
if ($CFG->ldap_search_sub){
//use ldap_search to find first user from subtree
- $ldap_result = ldap_search($ldap_connection, $context, "(".$CFG->ldap_user_attribute."=".$username.")");
+ $ldap_result = ldap_search($ldap_connection, $context, "(".$CFG->ldap_user_attribute."=".$username.")",array($CFG->ldap_user_attribute));
} else {
//search only in this context
- $ldap_result = ldap_list($ldap_connection, $context, "(".$CFG->ldap_user_attribute."=".$username.")");
+ $ldap_result = ldap_list($ldap_connection, $context, "(".$CFG->ldap_user_attribute."=".$username.")",array($CFG->ldap_user_attribute));
}
$entry = ldap_first_entry($ldap_connection,$ldap_result);

0 comments on commit fdc60fd

Please sign in to comment.
Something went wrong with that request. Please try again.