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:
parent
302619f66f
commit
3669479f22
@ -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...
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user