diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-10-08 17:14:28 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2018-11-05 09:33:28 +0100 |
commit | dffea1b1c32973f53d12a89b58ae6de7211ad09f (patch) | |
tree | 903d3bfdb7d0f8174c5db37777e61f21edf4f8f1 /python | |
parent | 997a3b23b96e6f3a399cd41ac956ce41ea6971f8 (diff) | |
download | samba-dffea1b1c32973f53d12a89b58ae6de7211ad09f.tar.gz |
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 <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit c5c99b569569ce36cac94e967ca53e3182abd6f7)
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/dbchecker.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py index 34856108a22..189230503ac 100644 --- a/python/samba/dbchecker.py +++ b/python/samba/dbchecker.py @@ -378,10 +378,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, err: if self.in_transaction: |