summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-10-23 21:57:16 +0400
committerMatthieu Patou <mat@samba.org>2010-11-12 19:40:21 +0000
commitadd39bc40bc89d2f3fac86f1cddea3947caafbfa (patch)
tree6ae0a2469b375dc50f32e9209523fd0541ef130e
parent2990b4fbb1acf74e98b55ce63fea3e2fe280d60e (diff)
downloadsamba-add39bc40bc89d2f3fac86f1cddea3947caafbfa.tar.gz
samba-add39bc40bc89d2f3fac86f1cddea3947caafbfa.tar.bz2
samba-add39bc40bc89d2f3fac86f1cddea3947caafbfa.zip
upgradeprovision: update revision for forestupdate and domainupdate objects
-rwxr-xr-xsource4/scripting/bin/upgradeprovision5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index dc81710ecd..cd3adc92c7 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -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