summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Kroeger <andrew@sprocks.gotdns.com>2008-03-07 05:56:04 -0600
committerAndrew Kroeger <andrew@sprocks.gotdns.com>2008-03-07 05:59:56 -0600
commita689d65e4ff393ca99051c385f9608b8050b7517 (patch)
treedf5dcdadf70bd40eff5cbfa0190d20b6a9d8d1ce /source4
parente9171397ecd2ab86ea64363f9a0230fc2104ed02 (diff)
downloadsamba-a689d65e4ff393ca99051c385f9608b8050b7517.tar.gz
samba-a689d65e4ff393ca99051c385f9608b8050b7517.tar.bz2
samba-a689d65e4ff393ca99051c385f9608b8050b7517.zip
Treat maxPwdAge == 0 as passwords never expire.
(This used to be commit d28f2cb678b334086f601505c88e56b9c1ee559d)
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 07a433780b..88c8afd6cc 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -517,7 +517,7 @@ NTTIME samdb_result_force_password_change(struct ldb_context *sam_ldb,
maxPwdAge = samdb_search_int64(sam_ldb, mem_ctx, 0, domain_dn, "maxPwdAge", NULL);
if (maxPwdAge == 0) {
- return 0;
+ return 0x7FFFFFFFFFFFFFFFULL;
} else {
attr_time -= maxPwdAge;
}