From: hickert Date: Wed, 21 Jul 2010 10:22:48 +0000 (+0000) Subject: Removed old flag dependencies X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5718fcc0d4b96d767bd6ecdcd7bc8f655fa17473;p=gosa.git Removed old flag dependencies git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19035 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index a1630c067..09bd6d7f3 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -515,13 +515,8 @@ class sambaAccount extends plugin $additional_info_PwdMustChange = sprintf(_("The password is outdated since %s, by domain policy."), date("d.m.Y H:i:s",$last + $sid['sambaMaxPwdAge'][0])); }else{ - if($this->password_expires && ($last + $sid['sambaMaxPwdAge'][0]) > $this->sambaPwdMustChange){ - $additional_info_PwdMustChange = sprintf(_("The password is valid till %s, by user policy."), - date("d.m.Y H:i:s", $this->sambaPwdMustChange)); - }else{ - $additional_info_PwdMustChange = sprintf(_("The password is valid till %s, by domain policy."), - date("d.m.Y H:i:s", ($last + $sid['sambaMaxPwdAge'][0]))); - } + $additional_info_PwdMustChange = sprintf(_("The password is valid till %s."), + date("d.m.Y H:i:s", ($last + $sid['sambaMaxPwdAge'][0]))); } } } @@ -618,19 +613,11 @@ class sambaAccount extends plugin $$attr = $this->attrs[$attr][0]; } } - if($this->password_expires){ - $sambaPwdMustChange = $this->sambaPwdMustChange; - } else { - if (is_numeric($sambaPwdMustChange)) { - $sambaPwdMustChange= date('d.m.Y', $sambaPwdMustChange); - } + if (is_numeric($sambaPwdMustChange)) { + $sambaPwdMustChange= date('d.m.Y', $sambaPwdMustChange); } - if($this->kickoff_time_set){ - $sambaKickoffTime = $this->sambaKickoffTime; - } else { - if (is_numeric($sambaKickoffTime)) { - $sambaKickoffTime= date('d.m.Y', $sambaKickoffTime); - } + if (is_numeric($sambaKickoffTime)) { + $sambaKickoffTime= date('d.m.Y', $sambaKickoffTime); } $sambaPwdCanChange = $this->sambaPwdCanChange; @@ -800,7 +787,7 @@ class sambaAccount extends plugin "\n"._("Last logoff").": ".$sambaLogoffTime."". "\n"._("Automatic logoff").": ".$sambaKickoffTime.""; - if($this->no_expiry){ + if($this->flag_passwordNeverExpires){ $str .= "\n"._("Password expires").": "._("No").""; $str .= "\n". sprintf(_("The password would expire on %s, but the password expiry is disabled."),$sambaPwdMustChange).