From e65a4281c139b7d07560aad8963653b1eb6c70ea Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 17 May 2024 14:19:31 +1200 Subject: [PATCH] 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 Reviewed-by: Jo Sutton (cherry picked from commit 3669479f22f2109a64250ffabd1f6453882d29f1) BUG: https://bugzilla.samba.org/show_bug.cgi?id=15655 --- source4/dsdb/samdb/ldb_modules/operational.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/dsdb/samdb/ldb_modules/operational.c b/source4/dsdb/samdb/ldb_modules/operational.c index 8c8bfa89dde..9ca96ac27de 100644 --- a/source4/dsdb/samdb/ldb_modules/operational.c +++ b/source4/dsdb/samdb/ldb_modules/operational.c @@ -786,13 +786,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 (-0x8000000000000000ULL) * */ maxPwdAge = get_user_max_pwd_age(module, msg, parent, domain_dn); - if (maxPwdAge >= -864000000000) { + if (maxPwdAge >= -1) { /* * This is not really possible... */ -- 2.47.2