1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Treat maxPwdAge == 0 as passwords never expire.

This commit is contained in:
Andrew Kroeger 2008-03-07 05:56:04 -06:00
parent 6a98e5a7aa
commit d28f2cb678

View File

@ -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;
}