From bef3aec8bf6912e144a0b98bae56d6d321d9d00c Mon Sep 17 00:00:00 2001 From: Billy Date: Thu, 3 Oct 2019 10:56:02 +0100 Subject: [PATCH] Fixed up tests --- src/LdapLogic.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/LdapLogic.php b/src/LdapLogic.php index d7c9eb4..ed580dc 100644 --- a/src/LdapLogic.php +++ b/src/LdapLogic.php @@ -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; } @@ -76,4 +77,4 @@ public function findUser(string $username) return new LdapUser($info); } -} \ No newline at end of file +}