Skip to content

Commit 2c768bf

Browse files
author
robin.kluth
committed
1.1.18
* Return error when no entries are found while fetching userdata after successful login
1 parent 1366207 commit 2c768bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LdapAuth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function fetchUserData($attributes = "")
209209

210210
if ($result) {
211211
$entries = ldap_get_entries($this->_l, $result);
212-
if ($entries['count'] > 1) {
212+
if ($entries['count'] > 1 || $entries['count'] == 0) {
213213
return false;
214214
}
215215
$sid = self::SIDtoString($entries[0]['objectsid'])[0];

0 commit comments

Comments
 (0)