1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-13 05:49:31 +03:00

s4-dbcheck: Always specify the dhcheck control

This will then allow us to make schema modifications, overriding the default ban.

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2012-06-16 11:51:22 +10:00
parent 72953b1eb8
commit fa223eb26b

View File

@ -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))