1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-27 07:42:04 +03:00

s4-samba-tool: Fix samba-tool fsmo seize

This is currently untested, and a restructure broke it.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2012-04-19 13:57:29 +10:00
parent a2b7a9e2a2
commit 6b2753d71e
2 changed files with 51 additions and 46 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 == -1 || max_pw_age_unix == 0:
if max_pw_age_unix == -1 or max_pw_age_unix == 0:
max_pw_age_nt = -0x8000000000000000
else:
max_pw_age_nt = int(-max_pw_age_unix * (1e7 * 60 * 60 * 24))