1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +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>
(cherry picked from commit 3669479f22)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15655
This commit is contained in:
Andrew Bartlett 2024-05-17 14:19:31 +12:00 committed by Jule Anger
parent eeae9fe4b0
commit 4e57b8a5fe

View File

@ -783,13 +783,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...
*/