eck if $settings->_ldapBaseDN is set in order to prevent php warnings

This commit is contained in:
steinm 2011-09-12 07:25:56 +00:00
parent fe0c8c2381
commit 4ce91b17cf

View File

@ -68,8 +68,10 @@ if ((!isset($pwd) || strlen($pwd)==0) && ($login != $guestUser->getLogin())) {
//
/* new code by doudoux - TO BE TESTED */
$ldapSearchAttribut = "uid=";
$tmpDN = "uid=".$login.",".$settings->_ldapBaseDN;
if (isset($settings->_ldapBaseDN)) {
$ldapSearchAttribut = "uid=";
$tmpDN = "uid=".$login.",".$settings->_ldapBaseDN;
}
if (isset($settings->_ldapType))
{