1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

dsdb: Reduce minimum maxPwdAge from 1 day to nil

This allows us to have tests, which pass on Windows, that
use a very short maxPwdAge.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2024-05-17 14:19:31 +12:00
parent 302619f66f
commit 3669479f22

View File

@ -780,13 +780,13 @@ static NTTIME get_msds_user_password_expiry_time_computed(struct ldb_module *mod
*
* Possible values are in the range of:
*
* maxPwdAge: -864000000001
* maxPwdAge: -2
* to
* maxPwdAge: -9223372036854775808 (INT64_MIN)
*
*/
maxPwdAge = get_user_max_pwd_age(module, msg, parent, domain_dn);
if (maxPwdAge >= -864000000000) {
if (maxPwdAge >= -1) {
/*
* This is not really possible...
*/