diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-06-16 11:51:22 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-06-16 03:55:06 +0200 |
commit | fa223eb26b07bba9e8055c35584886e6deb6e4a2 (patch) | |
tree | 2e4e1988f5d1262a395f9793615f64bb28711333 /source4 | |
parent | 72953b1eb8fa42257c7f8eff603e04c953fac361 (diff) | |
download | samba-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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/dbchecker.py | 1 |
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)) |