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
commit e46579b34e
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ if ($request['recursive']) {
print '</small>';
} else {
if ($_SESSION[APPCONFIG]->getValue('confirm','copy')) {
if ($_SESSION[APPCONFIG]->getValue('confirm','copy') && !$request['remove']) {
$request['pageSRC'] = new TemplateRender($ldap['SRC']->getIndex(),get_request('template','REQUEST',false,null));
$request['pageSRC']->setDN($request['dnSRC']);
$request['pageSRC']->accept(true);

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)