ldb_debug: Fix binary data in debug log
authorAndrew Bartlett <abartlet@samba.org>
Mon, 26 Feb 2018 01:31:24 +0000 (14:31 +1300)
committerStefan Metzmacher <metze@samba.org>
Wed, 28 Feb 2018 23:42:25 +0000 (00:42 +0100)
commitda216fa4f568f21b6d2ab85219896bf9946f7079
tree48302373809e1a590d2ce40392aadf7fdb71eaae
parent93cfa4634745d60797de9346ad56cc9d8c3f6122
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>
(cherry picked from commit c5a14306c82f702f4788faea262c9ec6ade584cb)
lib/ldb/ldb_tdb/ldb_index.c