ldb_debug: Fix binary data in debug log
authorAndrew Bartlett <abartlet@samba.org>
Mon, 26 Feb 2018 01:31:24 +0000 (14:31 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 26 Feb 2018 01:32:09 +0000 (02:32 +0100)
commitc5a14306c82f702f4788faea262c9ec6ade584cb
tree5c105fd8a684a1e486685e3f63df4e4d5c070f65
parent106ea7a1bcde3f5aa4fbb4ff8beb0cb44cf0e0ed
ldb_debug: Fix binary data in debug log

When duplicate objects were added, the GUID was printed in the debug log
The GUID was not escaped and therefore displayed as binary content.

This patch splits out the duplicate DN creation error and the duplicate
GIUD error.  Duplicate DN's are a normal event and don't require debug
logging.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13185

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_index.c