summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-06-16 11:51:22 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-06-16 03:55:06 +0200
commitfa223eb26b07bba9e8055c35584886e6deb6e4a2 (patch)
tree2e4e1988f5d1262a395f9793615f64bb28711333
parent72953b1eb8fa42257c7f8eff603e04c953fac361 (diff)
downloadsamba-fa223eb26b07bba9e8055c35584886e6deb6e4a2.tar.gz
samba-fa223eb26b07bba9e8055c35584886e6deb6e4a2.tar.bz2
samba-fa223eb26b07bba9e8055c35584886e6deb6e4a2.zip
s4-dbcheck: Always specify the dhcheck control
This will then allow us to make schema modifications, overriding the default ban. Andrew Bartlett
-rw-r--r--source4/scripting/python/samba/dbchecker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/dbchecker.py b/source4/scripting/python/samba/dbchecker.py
index 95be1ceb08..72d0604b34 100644
--- a/source4/scripting/python/samba/dbchecker.py
+++ b/source4/scripting/python/samba/dbchecker.py
@@ -118,6 +118,7 @@ class dbcheck(object):
if self.verbose:
self.report(self.samdb.write_ldif(m, ldb.CHANGETYPE_MODIFY))
try:
+ controls = controls + ["local_oid:%s:0" % dsdb.DSDB_CONTROL_DBCHECK]
self.samdb.modify(m, controls=controls, validate=validate)
except Exception, err:
self.report("%s : %s" % (msg, err))