From 503824b75723f62bbe7ee578d0ed6ad4a1203665 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 10 Aug 2010 17:39:29 +0400 Subject: s4 upgradeprovision: fix a typo and pass correct parameter to increment_calculated_keyversion --- source4/scripting/python/samba/upgradehelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/scripting/python/samba/upgradehelpers.py') diff --git a/source4/scripting/python/samba/upgradehelpers.py b/source4/scripting/python/samba/upgradehelpers.py index 58106e0a708..2bc1795fbca 100755 --- a/source4/scripting/python/samba/upgradehelpers.py +++ b/source4/scripting/python/samba/upgradehelpers.py @@ -737,12 +737,12 @@ def increment_calculated_keyversion_number(samdb, rootdn, hashDns): else: for e in entry: if hashDns.has_key(str(e.dn).lower()): - done = done + 1 val = e.get("msDs-KeyVersionNumber") if not val: continue version = int(str(hashDns[str(e.dn).lower()])) if int(str(val)) < version: + done = done + 1 samdb.set_attribute_replmetadata_version(str(e.dn), "unicodePwd", version) -- cgit