diff --git a/htdocs/copy.php b/htdocs/copy.php index 34d15123..fad7d924 100644 --- a/htdocs/copy.php +++ b/htdocs/copy.php @@ -63,7 +63,7 @@ print ''; } 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); diff --git a/lib/ds_ldap.php b/lib/ds_ldap.php index 8bc1ef81..554f9dea 100644 --- a/lib/ds_ldap.php +++ b/lib/ds_ldap.php @@ -251,7 +251,7 @@ public function login($user=null,$pass=null,$method=null,$new=false) { 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)