quota fix 4 users
This commit is contained in:
parent
e14de2e72c
commit
a421bb8e30
|
@ -840,6 +840,7 @@ function createuser($values) { // Will create the LDAP-Account
|
||||||
$attr['shadowLastChange'] = getdays(); // shadowAccount_may
|
$attr['shadowLastChange'] = getdays(); // shadowAccount_may
|
||||||
$attr['loginShell'] = $values->general_shell; // posixAccount_may
|
$attr['loginShell'] = $values->general_shell; // posixAccount_may
|
||||||
$attr['gecos'] = utf8_encode($values->general_gecos); // posixAccount_may
|
$attr['gecos'] = utf8_encode($values->general_gecos); // posixAccount_may
|
||||||
|
print $attr['gecos'];
|
||||||
$attr['description'] = utf8_encode($values->general_gecos); // posixAccount_may sambaAccount_may
|
$attr['description'] = utf8_encode($values->general_gecos); // posixAccount_may sambaAccount_may
|
||||||
$attr['displayName'] = utf8_encode($values->smb_displayName); // sambaAccount_may
|
$attr['displayName'] = utf8_encode($values->smb_displayName); // sambaAccount_may
|
||||||
|
|
||||||
|
|
|
@ -66,6 +66,11 @@ else if (count($_POST)==0) { // Startcondition. useredit.php was called from out
|
||||||
$_SESSION['account']->smb_flagsW = 0;
|
$_SESSION['account']->smb_flagsW = 0;
|
||||||
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
|
if (isset($_SESSION['account_old'])) unset($_SESSION['account_old']);
|
||||||
$_SESSION['account_old'] = false;
|
$_SESSION['account_old'] = false;
|
||||||
|
$values = getquotas('user');
|
||||||
|
if (is_object($values)) {
|
||||||
|
while (list($key, $val) = each($values)) // Set only defined values
|
||||||
|
if (isset($val)) $_SESSION['account']->$key = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue