With 74bd996 enable login via DN.

Enhances #253
This commit is contained in:
Deon George 2024-01-09 13:29:10 +11:00
parent cb783da34b
commit c8fffd6d81

View File

@ -26,6 +26,10 @@ class LdapUserRepository extends LdapUserRepositoryBase
return NULL;
}
// For DN based logins
if (! empty($credentials['dn']))
return $this->query()->find($credentials['dn']);
// Look for a user using all our baseDNs
foreach (Server::baseDNs() as $base) {
$query = $this->query()->setBaseDn($base);