summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/upgradeprovision
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-08-10 18:19:40 +0400
committerMatthieu Patou <mat@matws.net>2010-08-19 15:59:04 +0400
commit3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4 (patch)
treef41f147d8250de6aacb547f6e989b0cfb01fd7d0 /source4/scripting/bin/upgradeprovision
parent503824b75723f62bbe7ee578d0ed6ad4a1203665 (diff)
downloadsamba-3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4.tar.gz
samba-3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4.tar.bz2
samba-3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4.zip
s4 upgradeprovision: Fixes for increment_keyversion
fix
Diffstat (limited to 'source4/scripting/bin/upgradeprovision')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index f171aebe58..0c810307ac 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -1337,7 +1337,8 @@ def sync_calculated_attributes(samdb, names):
"""
listAttrs = ["msDs-KeyVersionNumber"]
hash = search_constructed_attrs_stored(samdb, names.rootdn, listAttrs)
- increment_calculated_keyversion_number(samdb, names.rootdn,
+ if hash.has_key("msDs-KeyVersionNumber"):
+ increment_calculated_keyversion_number(samdb, names.rootdn,
hash["msDs-KeyVersionNumber"])
def setup_path(file):