Merge pull request #34 from gulikoza/master
Fix moving ldap entries and login error with 'fallback_dn'
This commit is contained in:
commit
e46579b34e
@ -63,7 +63,7 @@ if ($request['recursive']) {
|
|||||||
print '</small>';
|
print '</small>';
|
||||||
|
|
||||||
} else {
|
} 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'] = new TemplateRender($ldap['SRC']->getIndex(),get_request('template','REQUEST',false,null));
|
||||||
$request['pageSRC']->setDN($request['dnSRC']);
|
$request['pageSRC']->setDN($request['dnSRC']);
|
||||||
$request['pageSRC']->accept(true);
|
$request['pageSRC']->accept(true);
|
||||||
|
@ -251,7 +251,7 @@ class ldap extends DS {
|
|||||||
else
|
else
|
||||||
$userDN = $this->getLoginID($user,'login');
|
$userDN = $this->getLoginID($user,'login');
|
||||||
|
|
||||||
if (! $userDN && $this->getValue('login','fallback_dn'))
|
if (! $userDN && $this->getValue('login','fallback_dn') && strpos($user, '='))
|
||||||
$userDN = $user;
|
$userDN = $user;
|
||||||
|
|
||||||
if (! $userDN)
|
if (! $userDN)
|
||||||
|
Loading…
Reference in New Issue
Block a user