summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ed76ab)
raw | patch | inline | side by side (parent: 2ed76ab)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Mar 2011 14:49:29 +0000 (14:49 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 17 Mar 2011 14:49:29 +0000 (14:49 +0000) |
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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20626 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 6549bbdbbc533b1c201af711d568b57473bf5130..fc9007db186f1974547325533032a65d7c2760d2 100644 (file)
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