summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-09-09 07:31:42 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-09-09 01:53:55 +0200
commitb8aa4e513cc205b04dadf5f6d1ce3d937b427574 (patch)
treec0c01a861f660a60e5e5cff40d5606df4ce8ff2f /source4
parente30b8c72def13e2abc14858ea64eb849ea665b80 (diff)
downloadsamba-b8aa4e513cc205b04dadf5f6d1ce3d937b427574.tar.gz
samba-b8aa4e513cc205b04dadf5f6d1ce3d937b427574.tar.bz2
samba-b8aa4e513cc205b04dadf5f6d1ce3d937b427574.zip
s4-s3-upgrade do not convert min password length as a time
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Sep 9 01:53:55 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/upgrade.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py
index 92ab86b696..8157b457eb 100644
--- a/source4/scripting/python/samba/upgrade.py
+++ b/source4/scripting/python/samba/upgrade.py
@@ -53,7 +53,7 @@ def import_sam_policy(samdb, policy, logger):
m = ldb.Message()
m.dn = samdb.get_default_basedn()
- m['a01'] = ldb.MessageElement(str(unix2nttime(policy['min password length'])), ldb.FLAG_MOD_REPLACE,
+ m['a01'] = ldb.MessageElement(str(policy['min password length']), ldb.FLAG_MOD_REPLACE,
'minPwdLength')
m['a02'] = ldb.MessageElement(str(policy['password history']), ldb.FLAG_MOD_REPLACE,
'pwdHistoryLength')