summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 232f0b4)
raw | patch | inline | side by side (parent: 232f0b4)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Oct 2009 06:32:14 +0000 (06:32 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Oct 2009 06:32:14 +0000 (06:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14504 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 86bd9ebdde7fc6e71d3785466dd8d2b52748c4ce..a7928ba6a1c2c4b894e480c523b11b30d6fcd841 100644 (file)
/* User attributes
*/
$user_attributes = array("sambaBadPasswordTime","sambaPwdLastSet","sambaLogonTime","sambaLogoffTime",
- "sambaKickoffTime","sambaPwdCanChange","sambaPwdMustChange","sambaBadPasswordCount");
+ "sambaKickoffTime","sambaPwdCanChange","sambaPwdMustChange","sambaBadPasswordCount", "sambaSID");
/* Get samba SID object and parse settings.
*/
if($this->password_expires){
$sambaPwdMustChange = $this->sambaPwdMustChange;
} else {
- $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 {
- $sambaKickoffTime= date('d.m.Y', $sambaKickoffTime);
+ if (is_numeric($sambaKickoffTime)) {
+ $sambaKickoffTime= date('d.m.Y', $sambaKickoffTime);
+ }
}
$sambaPwdCanChange = $this->sambaPwdCanChange;
"\n<tr><td>"._("Refuse machine password change").":</td><td>".$sambaRefuseMachinePwdChange."</td></tr>".
"\n<tr><td> </td></tr>".
"\n<tr><td><b>"._("User attributes")."</b></td></tr>".
+ "\n<tr><td>"._("SID").": </td><td>".$sambaSID."</td></tr>".
"\n<tr><td>"._("Last failed login").": </td><td>".$sambaBadPasswordTime."</td></tr>".
"\n<tr><td>"._("Logon attempts").": </td><td>".$sambaBadPasswordCount."</td></tr>".
"\n<tr><td>"._("Last password update").": </td><td>".$sambaPwdLastSet."</td></tr>".