Merge pull request #34 from gulikoza/master

Fix moving ldap entries and login error with 'fallback_dn'
This commit is contained in:
Deon George
2016-10-30 16:52:22 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

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)