git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e30b8c7
)
s4-s3-upgrade do not convert min password length as a time
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 8 Sep 2011 21:31:42 +0000
(07:31 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 8 Sep 2011 23:53:55 +0000
(
01:53
+0200)
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Sep 9 01:53:55 CEST 2011 on sn-devel-104
source4/scripting/python/samba/upgrade.py
patch
|
blob
|
history
diff --git
a/source4/scripting/python/samba/upgrade.py
b/source4/scripting/python/samba/upgrade.py
index 92ab86b69689aafdd5eedfd0e10d18a2bcf1c1a1..8157b457ebd0ecb7ecec852afceb9b66a346362e 100644
(file)
--- 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')