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:
parent
6a98e5a7aa
commit
d28f2cb678
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user