Skip to content

Commit

Permalink
Fixed up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnotnow committed Oct 3, 2019
1 parent ff6d8df commit bef3aec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/LdapLogic.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public function authenticate(string $username, string $password)
if (!$user) {
return false;
}
if (!$this->authenticatedBind($user[0]['dn'], $password)) {

if (!$this->authenticatedBind($user[0]['uid'][0], $password)) {
return false;
}

Expand All @@ -76,4 +77,4 @@ public function findUser(string $username)

return new LdapUser($info);
}
}
}

0 comments on commit bef3aec

Please sign in to comment.