From 68c43f4f4fc1a39da7c097167f98dbd12ac45cd0 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 13 May 2005 10:08:45 +0000 Subject: [PATCH] Added Option to lock account (flag 'L' in sambaAcctFlags if sambaVer=3.x) git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@200 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/samba/class_sambaAccount.inc | 9 ++++++--- plugins/personal/samba/samba3.tpl | 7 +++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index 8b5cf10a7..2fc31e6f5 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -496,8 +496,11 @@ class sambaAccount extends plugin } /* Checkboxes */ - foreach(array( "N" => "no_password_required", - "D" => "temporary_disable") as $key => $val){ + 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 { @@ -512,7 +515,7 @@ class sambaAccount extends plugin $smarty->assign("flagsC", "checked"); } if ($this->logon_time_set=="1"){ - $smarty->assign("flagsL", "checked"); + $smarty->assign("flagsT", "checked"); } if ($this->logoff_time_set=="1"){ $smarty->assign("flagsO", "checked"); diff --git a/plugins/personal/samba/samba3.tpl b/plugins/personal/samba/samba3.tpl index ceea6c9f1..93e5d20ff 100644 --- a/plugins/personal/samba/samba3.tpl +++ b/plugins/personal/samba/samba3.tpl @@ -220,6 +220,9 @@
{t}Temporary disable samba account{/t} +
+ + {t}Lock samba account{/t}
{t}Password expires on{/t} @@ -233,7 +236,7 @@ {html_options values=$years output=$years selected=$year}
- + {t}Limit Logon Time{/t} +
-- 2.30.2