diff options
author | Matthieu Patou <mat@matws.net> | 2010-08-10 18:19:40 +0400 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2010-08-19 15:59:04 +0400 |
commit | 3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4 (patch) | |
tree | f41f147d8250de6aacb547f6e989b0cfb01fd7d0 /source4/scripting/bin | |
parent | 503824b75723f62bbe7ee578d0ed6ad4a1203665 (diff) | |
download | samba-3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4.tar.gz samba-3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4.tar.bz2 samba-3e49b20cf0b0cadccc4e5b5ff3d20cbf60eeb3c4.zip |
s4 upgradeprovision: Fixes for increment_keyversion
fix
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-x | source4/scripting/bin/upgradeprovision | 3 |
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): |