diff options
author | Stefan Metzmacher <metze@samba.org> | 2018-10-08 17:14:28 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-10-30 07:30:20 +0100 |
commit | c5c99b569569ce36cac94e967ca53e3182abd6f7 (patch) | |
tree | 23d0aeee0da8fe61a9afa96e3ee5691b380e4d4c /python/samba/dbchecker.py | |
parent | bb9c9e49a5e82f19626cb1b12ec9189fff5114e8 (diff) | |
download | samba-c5c99b569569ce36cac94e967ca53e3182abd6f7.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>
Diffstat (limited to 'python/samba/dbchecker.py')
-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 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: |