From 1d7d181882abaaa5ed9ced634dbbc8e29d0a7455 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 5 Oct 2009 06:32:14 +0000 Subject: [PATCH] Additionally show SID of the user in info dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14504 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../samba/personal/samba/class_sambaAccount.inc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index 86bd9ebdd..a7928ba6a 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -700,7 +700,7 @@ class sambaAccount extends plugin /* 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. */ @@ -725,12 +725,16 @@ class sambaAccount extends plugin 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; @@ -892,6 +896,7 @@ class sambaAccount extends plugin "\n"._("Refuse machine password change").":".$sambaRefuseMachinePwdChange."". "\n ". "\n"._("User attributes")."". + "\n"._("SID").": ".$sambaSID."". "\n"._("Last failed login").": ".$sambaBadPasswordTime."". "\n"._("Logon attempts").": ".$sambaBadPasswordCount."". "\n"._("Last password update").": ".$sambaPwdLastSet."". -- 2.30.2