git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2990b4f
)
upgradeprovision: update revision for forestupdate and domainupdate objects
author
Matthieu Patou
<mat@matws.net>
Sat, 23 Oct 2010 17:57:16 +0000
(21:57 +0400)
committer
Matthieu Patou
<mat@samba.org>
Fri, 12 Nov 2010 19:40:21 +0000
(19:40 +0000)
source4/scripting/bin/upgradeprovision
patch
|
blob
|
history
diff --git
a/source4/scripting/bin/upgradeprovision
b/source4/scripting/bin/upgradeprovision
index dc81710ecd6bf3c8ff39bb0383080ba5e9c2aaac..cd3adc92c7de56d79125e8fed7a1190d7d2d78bc 100755
(executable)
--- 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
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
if str(delta.dn).endswith("CN=DisplaySpecifiers, %s" % names.configdn):
return True