summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: df3d2bc)
raw | patch | inline | side by side (parent: df3d2bc)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 13 May 2005 11:45:04 +0000 (11:45 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 13 May 2005 11:45:04 +0000 (11:45 +0000) |
Renamed Option 'temporary disable account' to 'lock samba account' cause it fits better to actual case..
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@203 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@203 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/samba/class_sambaAccount.inc | patch | blob | history | |
plugins/personal/samba/samba3.tpl | patch | blob | history |
diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc
index 2fc31e6f52ebeac3e7d35cbe809ac2a5c050c301..ce752adc5ed47c3bbd969c32f1479a5f7eac1982 100644 (file)
$smarty->assign("$val"."ACL", chkacl($this->acl,$val));
}
- /* Checkboxes */
- foreach(array(
- "N" => "no_password_required",
- "D" => "temporary_disable",
- "L" => "automatically_disable")
- as $key => $val){
- if (is_integer(strpos($this->sambaAcctFlags, "$key"))) {
- $smarty->assign("flags$key", "checked");
- } else {
- $smarty->assign("flags$key", "");
- }
- $smarty->assign("$val"."ACL", chkacl($this->acl, "$val"));
+
+ /* 'sambaAcctFlags' checkboxes */
+ /* Check for 'lock-account'-flag: 'D' or 'L' */
+ if (is_integer(strpos($this->sambaAcctFlags, "D")) ||
+ is_integer(strpos($this->sambaAcctFlags, "L"))) {
+ $smarty->assign("flagsD", "checked");
+ }
+
+ /* Check for no_password_required flag 'N' */
+ if (is_integer(strpos($this->sambaAcctFlags, "N"))) {
+ $smarty->assign("flagsN", "checked");
}
+
+ /* 'normal' Checkboxes */
if ($this->pwdCanChange=="1"){
$smarty->assign("flagsP", "checked");
}
$smarty->assign("allow_pwchangeACL", chkacl($this->acl, "allow_pwchange"));
$smarty->assign("password_expiresACL", chkacl($this->acl, "password_expires"));
+ $smarty->assign("no_password_requiredACL", chkacl($this->acl, "no_password_required"));
+ $smarty->assign("temporary_disableACL", chkacl($this->acl, "temporary_disable"));
$smarty->assign("sambaDomainNameACL", chkacl($this->acl, "sambaDomainName"));
$smarty->assign("logon_time_setACL", chkacl($this->acl, "logon_time_set"));
$smarty->assign("logoff_time_setACL", chkacl($this->acl, "logoff_time_set"));
}
if (isset($_POST["temporary_disable"])){
if ($_POST["temporary_disable"] == 1){
- $tmp.= "D";
+ if (is_integer(strpos($this->sambaAcctFlags, "L"))) {
+ $tmp.= "L";
+ } else {
+ $tmp.= "D";
+ }
}
}
if (isset($_POST["logon_time_set"])){
}
}
}
-
}
# Set more useful default setting
$this->attrs['sambaKickoffTime']= 2147483647;
}
-
} else {
/* Not samba3 */
$this->attrs['rid']= $this->uidNumber*2 + 1000;
index 93e5d20ff5071ead20acb3bd8362fc03b4fc4758..76914cb256a462ac9ac26ae0e4f52bd2120afcad 100644 (file)
{t}Login from windows client requires no password{/t}
<br>
<input type=checkbox name="temporary_disable" value="1" {$flagsD} {$temporary_disableACL}>
- {t}Temporary disable samba account{/t}
- <br>
- <input type=checkbox name="automatically_disable" value="1" {$flagsL} {$automatically_disableACL}>
{t}Lock samba account{/t}
<br>
<input type=checkbox name="password_expires" value="1" {$flagsC} {$password_expiresACL}>