diff options
author | Björn Jacke <bj@sernet.de> | 2021-02-05 12:47:01 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-02-16 17:16:21 +0000 |
commit | ac0e7f6a0cd6a27679762556324a6ec755401824 (patch) | |
tree | a00ffc3a24bb9cd11186eeb6c9046a7ac673df02 | |
parent | 5957cf2e2ca6265f233803c23212d307c3ccf530 (diff) | |
download | samba-ac0e7f6a0cd6a27679762556324a6ec755401824.tar.gz |
classicupgrade: treat old never expires value right
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14624
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Feb 10 15:06:49 UTC 2021 on sn-devel-184
(cherry picked from commit df75d82c9de6977c466ee9f01886cb012a9c5fef)
Autobuild-User(v4-13-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-13-test): Tue Feb 16 17:16:21 UTC 2021 on sn-devel-184
-rw-r--r-- | python/samba/upgrade.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/upgrade.py b/python/samba/upgrade.py index 8511bed2868..dff856a8d7c 100644 --- a/python/samba/upgrade.py +++ b/python/samba/upgrade.py @@ -74,7 +74,7 @@ def import_sam_policy(samdb, policy, logger): if 'maximum password age' in policy: max_pw_age_unix = policy['maximum password age'] - if max_pw_age_unix == -1 or max_pw_age_unix == 0: + if max_pw_age_unix == -1 or max_pw_age_unix == 0 or max_pw_age_unix == 0xFFFFFFFF: max_pw_age_nt = -0x8000000000000000 else: max_pw_age_nt = int(-max_pw_age_unix * (1e7)) |