upgradeprovision: update revision for forestupdate and domainupdate objects
authorMatthieu Patou <mat@matws.net>
Sat, 23 Oct 2010 17:57:16 +0000 (21:57 +0400)
committerMatthieu Patou <mat@samba.org>
Fri, 12 Nov 2010 19:40:21 +0000 (19:40 +0000)
source4/scripting/bin/upgradeprovision

index dc81710ecd6bf3c8ff39bb0383080ba5e9c2aaac..cd3adc92c7de56d79125e8fed7a1190d7d2d78bc 100755 (executable)
@@ -378,7 +378,10 @@ def handle_special_case(att, delta, new, old, usn, basedn, aldb):
         if (str(old[0].dn) == "%s" % (str(names.rootdn))
                 and att == "subRefs" and flag == FLAG_MOD_REPLACE):
             return True
-
+        #Allow to change revision of ForestUpdates objects
+        if (att == "revision" or att == "objectVersion"):
+            if str(delta.dn).lower().find("domainupdates") and str(delta.dn).lower().find("forestupdates") > 0:
+                return True
         if str(delta.dn).endswith("CN=DisplaySpecifiers, %s" % names.configdn):
             return True