summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/upgradeprovision
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-09-19 22:36:12 +0200
committerMatthias Dieter Wallnöfer <mdw@sn-devel-104.sn.samba.org>2010-10-03 15:23:18 +0000
commitdda6c354f6f2c1da95cf42cea90f76ce033de38e (patch)
treed04a05ef48458297d3e79b24c1fe8b3c215dbc74 /source4/scripting/bin/upgradeprovision
parente3081b92c16198332f5242a0395701ddfa7392e5 (diff)
downloadsamba-dda6c354f6f2c1da95cf42cea90f76ce033de38e.tar.gz
samba-dda6c354f6f2c1da95cf42cea90f76ce033de38e.tar.bz2
samba-dda6c354f6f2c1da95cf42cea90f76ce033de38e.zip
s4:dsdb python stuff - introduce also here the "show_recycled" control
But also here beside "show_deleted" to not loose compatibility with older provisions. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/bin/upgradeprovision')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision9
1 files changed, 6 insertions, 3 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index c7dd4f8ec3..37c66b61a5 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -633,15 +633,18 @@ def add_deletedobj_containers(ref_samdb, samdb, names):
ref_delObjCnt = ref_samdb.search(expression="(cn=Deleted Objects)",
base=part, scope=SCOPE_SUBTREE,
attrs=["dn"],
- controls=["show_deleted:0"])
+ controls=["show_deleted:0",
+ "show_recycled:0"])
delObjCnt = samdb.search(expression="(cn=Deleted Objects)",
base=part, scope=SCOPE_SUBTREE,
attrs=["dn"],
- controls=["show_deleted:0"])
+ controls=["show_deleted:0",
+ "show_recycled:0"])
if len(ref_delObjCnt) > len(delObjCnt):
reference = ref_samdb.search(expression="cn=Deleted Objects",
base=part, scope=SCOPE_SUBTREE,
- controls=["show_deleted:0"])
+ controls=["show_deleted:0",
+ "show_recycled:0"])
empty = Message()
delta = samdb.msg_diff(empty, reference[0])