From 8b4f6663f5e5ff2f818857b5d1cd05d88b8dbe0a Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 14 Jan 2009 09:58:59 +0000 Subject: [PATCH] Updated samba tab. -Removed logon/logoff hours git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13346 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/samba/class_sambaAccount.inc | 16 +- gosa-plugins/samba/personal/samba/samba3.tpl | 200 ++++++++---------- 2 files changed, 105 insertions(+), 111 deletions(-) diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index 9236cd55d..d082d00d9 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -762,15 +762,21 @@ class sambaAccount extends plugin } } - /* Get user infos + /* Get user infos */ foreach($user_attributes as $attr){ - if(isset($this->$attr) && $this->$attr != ""){ - $$attr = $this->$attr; - }elseif(isset($this->attrs[$attr])){ + if(isset($this->attrs[$attr])){ $$attr = $this->attrs[$attr][0]; } } + if($this->password_expires){ + $sambaPwdMustChange = $this->sambaPwdMustChange; + } + if($this->kickoff_time_set){ + $sambaKickoffTime = $this->sambaKickoffTime; + } + $sambaPwdCanChange = $this->sambaPwdCanChange; + /* DOMAIN Attributes */ @@ -939,7 +945,7 @@ class sambaAccount extends plugin "\n"._("Last logon").": ".$sambaLogonTime."". "\n"._("Last logoff").": ".$sambaLogoffTime."". "\n"._("Automatic logoff").": ".$sambaKickoffTime."". - "\n"._("Password expires").": ".$sambaKickoffTime."". + "\n"._("Password expires").": ".$sambaPwdMustChange."". "\n"._("Password change available").": ".$sambaPwdCanChange."". "\n"; return($str); diff --git a/gosa-plugins/samba/personal/samba/samba3.tpl b/gosa-plugins/samba/personal/samba/samba3.tpl index 5a25e213e..02e9bac05 100644 --- a/gosa-plugins/samba/personal/samba/samba3.tpl +++ b/gosa-plugins/samba/personal/samba/samba3.tpl @@ -320,113 +320,101 @@ - + -- 2.30.2
-{render acl=$sambaPwdCanChangeACL checkbox=$multiple_support checked=$use_allow_pwchange} - -{/render} - -
-{render acl=$sambaAcctFlagsNACL checkbox=$multiple_support checked=$use_no_password_required} - -{/render} - -
-{render acl=$sambaAcctFlagsLACL checkbox=$multiple_support checked=$use_temporary_disable} - -{/render} - -
-{render acl=$sambaPwdMustChangeACL checkbox=$multiple_support checked=$use_password_expires} - -{/render} - -{render acl=$sambaPwdMustChangeACL} - -{/render} -{render acl=$sambaPwdMustChangeACL} - -{/render} -{render acl=$sambaPwdMustChangeACL} - -{/render} -
-{render acl=$sambaLogonTimeACL checkbox=$multiple_support checked=$use_logon_time_set} - -{/render} - -{render acl=$sambaLogonTimeACL} - -{/render} -{render acl=$sambaLogonTimeACL} - -{/render} -{render acl=$sambaLogonTimeACL} - -{/render} -
-{render acl=$sambaLogoffTimeACL checkbox=$multiple_support checked=$use_logoff_time_set} - -{/render} - -{render acl=$sambaLogoffTimeACL} - -{/render} -{render acl=$sambaLogoffTimeACL} - -{/render} -{render acl=$sambaLogoffTimeACL} - -{/render} -
- -{render acl=$sambaKickoffTimeACL checkbox=$multiple_support checked=$use_kickoff_time_set} - -{/render} - -{render acl=$sambaKickoffTimeACL} - -{/render} -{render acl=$sambaKickoffTimeACL} - -{/render} -{render acl=$sambaKickoffTimeACL} - -{/render} -
- - - - -
-{render acl=$sambaLogonHoursACL mode=read_active checkbox=$multiple_support checked=$use_SetSambaLogonHours} - {t}Samba logon times{/t}  -{/render} +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {render acl=$sambaAcctFlagsNACL checkbox=$multiple_support checked=$use_no_password_required} + + {/render} + +
+ {render acl=$sambaPwdCanChangeACL checkbox=$multiple_support checked=$use_allow_pwchange} + + {/render} + +
+ {render acl=$sambaAcctFlagsLACL checkbox=$multiple_support checked=$use_temporary_disable} + + {/render} + +
+ {render acl=$sambaPwdMustChangeACL checkbox=$multiple_support checked=$use_password_expires} + + {/render} + + + {render acl=$sambaPwdMustChangeACL} + + {/render} + {render acl=$sambaPwdMustChangeACL} + + {/render} + {render acl=$sambaPwdMustChangeACL} + + {/render} +
+ {render acl=$sambaKickoffTimeACL checkbox=$multiple_support checked=$use_kickoff_time_set} + + {/render} + + + {render acl=$sambaKickoffTimeACL} + + {/render} + {render acl=$sambaKickoffTimeACL} + + {/render} + {render acl=$sambaKickoffTimeACL} + + {/render} + + + +
 
+ {render acl=$sambaLogonHoursACL mode=read_active checkbox=$multiple_support checked=$use_SetSambaLogonHours} + {t}Samba logon times{/t}  + {/render} +
+ -