Add additional check that full dn has been entered on login.

Fixes 'invalid dn syntax (34) for user' error when fallback_dn set and username was not found while trying to use it as dn.
This commit is contained in:
gulikoza 2016-01-24 11:37:43 +01:00
parent fa88250f0e
commit 0b8375fd2a

View File

@ -251,7 +251,7 @@ class ldap extends DS {
else
$userDN = $this->getLoginID($user,'login');
if (! $userDN && $this->getValue('login','fallback_dn'))
if (! $userDN && $this->getValue('login','fallback_dn') && strpos($user, '='))
$userDN = $user;
if (! $userDN)