From cc81c082dc59e9b9166dcbc11fd00a7f288da3f8 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 17 Mar 2011 14:49:29 +0000 Subject: [PATCH] Updated samba password expiration info. A value of -1 for sambaMaxPwdAge, means it never expires by policy git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20626 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 6549bbdbb..fc9007db1 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