:param samdb: An LDB object attached to the currently upgraded samdb
:param names: Various key parameter about current provision.
"""
- listAttrs = ["msDs-KeyVersionAttribute"]
+ listAttrs = ["msDs-KeyVersionNumber"]
hash = search_constructed_attrs_stored(samdb, names.rootdn, listAttrs)
- increment_calculated_keyversion_number(samdb, names.rootdn, hash)
+ increment_calculated_keyversion_number(samdb, names.rootdn,
+ hash["msDs-KeyVersionNumber"])
def setup_path(file):
return os.path.join(setup_dir, file)
except StandardError, err:
message(ERROR,"A problem has occured when trying to upgrade your provision,"
" a full backup is located at %s" % backupdir)
- if opts.changeall:
+ if opts.debugall or opts.debugchange:
(typ, val, tb) = sys.exc_info()
traceback.print_exception(typ, val, tb)
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)