From 3544e7cbf8a5b43d3ffca71b9d7c82a79a4804e3 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 17 Mar 2011 14:50:10 +0000 Subject: [PATCH] Updated samba password expiration info git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@20627 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/samba/personal/samba/class_sambaAccount.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc index 465bb60e3..41cd6b0fb 100644 --- a/gosa-plugins/samba/personal/samba/class_sambaAccount.inc +++ b/gosa-plugins/samba/personal/samba/class_sambaAccount.inc @@ -514,7 +514,7 @@ class sambaAccount extends plugin if(isset($this->attrs['sambaPwdLastSet'][0])){ $last = $this->attrs['sambaPwdLastSet'][0]; $sid = $this->get_domain_info(); - if(isset($sid['sambaMaxPwdAge'][0])){ + if(isset($sid['sambaMaxPwdAge'][0]) && $sid['sambaMaxPwdAge'][0] != -1){ $d = ($last + $sid['sambaMaxPwdAge'][0]) - time(); // A negative value means the password is outdated -- 2.30.2