summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ed2fe82)
raw | patch | inline | side by side (parent: ed2fe82)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Jul 2010 10:22:48 +0000 (10:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Jul 2010 10:22:48 +0000 (10:22 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19035 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/samba/personal/samba/class_sambaAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc
index a1630c067540148a9db276e53af065bf203097b3..09bd6d7f39f0f6a8019040c5f59b15eb5f62e46f 100644 (file)
$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])));
}
}
}
$$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;
"\n<tr><td>"._("Last logoff").": </td><td>".$sambaLogoffTime."</td></tr>".
"\n<tr><td>"._("Automatic logoff").": </td><td>".$sambaKickoffTime."</td></tr>";
- if($this->no_expiry){
+ if($this->flag_passwordNeverExpires){
$str .= "\n<tr><td>"._("Password expires").": </td><td>"._("No")."</td></tr>";
$str .= "\n<tr><td colspan='2'><font color='gray'>".
sprintf(_("The password would expire on %s, but the password expiry is disabled."),$sambaPwdMustChange).