From: Stefan Metzmacher Date: Mon, 8 Oct 2018 15:14:28 +0000 (+0200) Subject: dbchecker: improve verbose output of do_modify() X-Git-Tag: tdb-1.3.17~1121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5c99b569569ce36cac94e967ca53e3182abd6f7;p=thirdparty%2Fsamba.git dbchecker: improve verbose output of do_modify() This makes it easier to debug dbcheck problems. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13418 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index dcdbb893095..690d5d9f184 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -402,10 +402,11 @@ systemFlags: -1946157056%s""" % (dn, guid_suffix), def do_modify(self, m, controls, msg, validate=True): '''perform a modify with optional verbose output''' + controls = controls + ["local_oid:%s:0" % dsdb.DSDB_CONTROL_DBCHECK] if self.verbose: self.report(self.samdb.write_ldif(m, ldb.CHANGETYPE_MODIFY)) + self.report("controls: %r" % controls) try: - controls = controls + ["local_oid:%s:0" % dsdb.DSDB_CONTROL_DBCHECK] self.samdb.modify(m, controls=controls, validate=validate) except Exception as err: if self.in_transaction: