search->count() doesnt seem to be cached, so we will
This commit is contained in:
parent
f70c3b6ae9
commit
490238faf6
|
@ -199,13 +199,14 @@ class LdapAuthenticationPlugin extends AuthenticationPlugin
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($search->count()==0){
|
$searchcount = $search->count();
|
||||||
|
if($searchcount == 0) {
|
||||||
return false;
|
return false;
|
||||||
}else if($search->count()==1){
|
}else if($searchcount == 1) {
|
||||||
$entry = $search->shiftEntry();
|
$entry = $search->shiftEntry();
|
||||||
return $entry;
|
return $entry;
|
||||||
}else{
|
}else{
|
||||||
common_log(LOG_WARNING, 'Found ' . $search->count() . ' ldap user with the username: ' . $username);
|
common_log(LOG_WARNING, 'Found ' . $searchcount . ' ldap user with the username: ' . $username);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user