mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
s4-s3-upgrade now look for -1 as the special 'not set' value
this is possible because we know the py_passdb will always set -1 here, not passing though 0xFFFFFFFF. Andrew Bartlett
This commit is contained in:
committed by
Amitay Isaacs
parent
32e825d60d
commit
e80dbdcab1
@ -65,7 +65,7 @@ def import_sam_policy(samdb, policy, logger):
|
||||
'minPwdAge')
|
||||
|
||||
max_pw_age_unix = policy['maximum password age']
|
||||
if (max_pw_age_unix == 0xFFFFFFFF):
|
||||
if (max_pw_age_unix == -1):
|
||||
max_pw_age_nt = 0
|
||||
else:
|
||||
max_pw_age_nt = unix2nttime(max_pw_age_unix)
|
||||
|
Reference in New Issue
Block a user