mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
LDAP fix: handle legal boolean return result from searchUsers()
This commit is contained in:
parent
1ccf6b4527
commit
652089dd78
@ -333,7 +333,7 @@ class LDAP implements IAuthConnector
|
||||
$ldap_is_connected = $this->connect($this->ldapBindURL, $this->ldapBindDN, $this->ldapBindPassword);
|
||||
if ($ldap_is_connected) {
|
||||
$result = $this->searchUsers($username, $this->ldapAttributeUser, $this->ldapExtendedQuery);
|
||||
if (count($result) > 0) {
|
||||
if ($result !== false && count($result) > 0) {
|
||||
$ldap_is_connected = $this->connect($this->ldapBindURL, $result[0]['dn'], $password);
|
||||
return $ldap_is_connected;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user