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 18:27:20 +0000 |
commit | dedae240651b50c44eefd3b4d15f35621085cdb4 (patch) | |
tree | ef4f901d06561aa975e621a41366339eb1eaee7d | |
parent | ecb41890f10e497a1dc1e25499b44538856af6f0 (diff) | |
download | samba-dedae240651b50c44eefd3b4d15f35621085cdb4.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-14-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-14-test): Tue Feb 16 18:27:20 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)) |