From: Andrew Bartlett Date: Sat, 16 Jun 2012 01:51:22 +0000 (+1000) Subject: s4-dbcheck: Always specify the dhcheck control X-Git-Tag: samba-4.0.0beta2~101 X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba-autobuild%2F.git;a=commitdiff_plain;h=fa223eb26b07bba9e8055c35584886e6deb6e4a2 s4-dbcheck: Always specify the dhcheck control This will then allow us to make schema modifications, overriding the default ban. Andrew Bartlett --- diff --git a/source4/scripting/python/samba/dbchecker.py b/source4/scripting/python/samba/dbchecker.py index 95be1ceb08e..72d0604b34a 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))