X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Ffunctions.inc;h=d628de47a0033dcd92f7e7f1376d9a0c7bf9f2f7;hb=6c6148c73fa05be5904cb13385ed133bc615fdca;hp=1bbd8436bac78fa20c6a11b09f7daa25669e3ec8;hpb=b88e405fc759d51b7f3dd249a23d219b8dd2eab4;p=gosa.git diff --git a/include/functions.inc b/include/functions.inc index 1bbd8436b..d628de47a 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -358,7 +358,7 @@ function ldap_login_user ($username, $password) /* got user dn, fill acl's */ $ui= new userinfo($config, $ldap->getDN()); - $ui->username= $attrs['uid']; + $ui->username= $attrs['uid'][0]; /* password check, bind as user with supplied password */ $ldap->disconnect(); @@ -1121,7 +1121,7 @@ function gen_locked_message($user, $dn) $remove= false; /* Save variables from LOCK_VARS_TO_USE in session - for further editing */ - if( is_global(LOCK_VARS_TO_USE) && count(get_global('LOCK_VARS_TO_USE'))){ + if( is_global('LOCK_VARS_TO_USE') && count(get_global('LOCK_VARS_TO_USE'))){ $LOCK_VARS_USED = array(); $LOCK_VARS_TO_USE = get_global('LOCK_VARS_TO_USE');