s4-upgradeprovision: dn must be skipped as delta.remove("dn") do not remove this...
authorMatthieu Patou <mat@matws.net>
Mon, 13 Jun 2011 18:59:35 +0000 (22:59 +0400)
committerMatthieu Patou <mat@samba.org>
Sun, 19 Jun 2011 21:21:08 +0000 (23:21 +0200)
source4/scripting/bin/upgradeprovision

index c353fe07492b844a8199768c0eb403472733a2bc..79cf97dce4258d8fa2817f8bdcf676177ba22b03 100755 (executable)
@@ -878,6 +878,9 @@ def checkKeepAttributeWithMetadata(delta, att, message, reference, current,
     dn = current[0].dn
 
     for att in list(delta):
+        if att == "dn":
+            # dn is not removable
+            continue
         # We have updated by provision usn information so let's exploit
         # replMetadataProperties
         if att in forwardlinked: