From: Douglas Bagnall Date: Sun, 17 Mar 2024 01:44:32 +0000 (+1300) Subject: s4:samba_upgradeprovision: align DN ownership X-Git-Tag: tdb-1.4.11~1189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa9a32139fff4e8d49ee3f5331e6f8ce6fb47ae1;p=thirdparty%2Fsamba.git s4:samba_upgradeprovision: align DN ownership Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/source4/scripting/bin/samba_upgradeprovision b/source4/scripting/bin/samba_upgradeprovision index 18aae6d1423..47a4def003c 100755 --- a/source4/scripting/bin/samba_upgradeprovision +++ b/source4/scripting/bin/samba_upgradeprovision @@ -621,7 +621,6 @@ def add_missing_object(ref_samdb, samdb, dn, names, basedn, hash, index): controls=["search_options:1:2"]) empty = Message() delta = samdb.msg_diff(empty, reference[0]) - delta.dn skip = False try: if str(reference[0].get("cn")) == "RID Set": @@ -647,7 +646,7 @@ def add_missing_object(ref_samdb, samdb, dn, names, basedn, hash, index): depend_on_yet_tobecreated, att)) return False - delta.dn = dn + delta.dn = ldb.Dn(samdb, str(dn)) if not skip: message(CHANGE,"Object %s will be added" % dn) samdb.add(delta, ["relax:0", "provision:0"])