1
0
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:
Andrew Bartlett
2011-11-16 16:51:06 +11:00
committed by Amitay Isaacs
parent 32e825d60d
commit e80dbdcab1
2 changed files with 2 additions and 2 deletions

View File

@ -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)