From ef53932390e779130acc79344ba467c163e33c39 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 14 Sep 2009 10:00:15 +0000 Subject: [PATCH] Updated domain policy summary git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14248 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../samba/personal/samba/class_sambaAccount.inc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index 8cf6e687c..58b94b965 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -729,6 +729,7 @@ class sambaAccount extends plugin } } $smarty->assign("additional_info_PwdMustChange",$additional_info_PwdMustChange); + $smarty->assign("no_expiry",$this->no_expiry); /* Show main page */ $smarty->assign("multiple_support",$this->multiple_support_active); @@ -995,9 +996,18 @@ class sambaAccount extends plugin "\n"._("Last password update").": ".$sambaPwdLastSet."". "\n"._("Last logon").": ".$sambaLogonTime."". "\n"._("Last logoff").": ".$sambaLogoffTime."". - "\n"._("Automatic logoff").": ".$sambaKickoffTime."". - "\n"._("Password expires").": ".$sambaPwdMustChange."". - "\n"._("Password change available").": ".$sambaPwdCanChange."". + "\n"._("Automatic logoff").": ".$sambaKickoffTime.""; + + if($this->no_expiry){ + $str .= "\n"._("Password expires").": "._("No").""; + $str .= "\n". + sprintf(_("The password would expire on %s, but the password expiry is disabled."),$sambaPwdMustChange). + ""; + }else{ + $str .= "\n"._("Password expires").": ".$sambaPwdMustChange.""; + } + + $str .= "\n"._("Password change available").": ".$sambaPwdCanChange."". "\n"; "\n"; return($str); -- 2.30.2