upgradeprovision: use the (upgrade)provision control also
authorMatthieu Patou <mat@matws.net>
Sat, 23 Oct 2010 18:00:04 +0000 (22:00 +0400)
committerMatthieu Patou <mat@samba.org>
Fri, 12 Nov 2010 19:40:21 +0000 (19:40 +0000)
source4/scripting/bin/upgradeprovision

index cd3adc92c7de56d79125e8fed7a1190d7d2d78bc..4dd8f533be7f6ccaec0164ffa6abc4a357d6438d 100755 (executable)
@@ -490,7 +490,7 @@ def handle_special_add(samdb, dn, names):
         if len(res) > 0 and len(res2) == 0:
             message(CHANGE, "Existing object %s must be replaced by %s,"
                             "Renaming old object" % (str(oldDn), str(dn)))
-            samdb.rename(oldDn, objDn, ["relax:0"])
+            samdb.rename(oldDn, objDn, ["relax:0", "local_oid:1.3.6.1.4.1.7165.4.3.16:0"])
 
         return 0
 
@@ -602,7 +602,7 @@ def add_missing_object(ref_samdb, samdb, dn, names, basedn, hash, index):
         delta.dn = dn
         if not skip:
             message(CHANGE,"Object %s will be added" % dn)
-            samdb.add(delta, ["relax:0"])
+            samdb.add(delta, ["relax:0", "local_oid:1.3.6.1.4.1.7165.4.3.16:0"])
         else:
             message(CHANGE,"Object %s was skipped" % dn)