repl_meta_data: Re-work printing of replicated entries
commit8fbaf1567b20cc7b3eca66198ce2457247926237
authorAndrew Bartlett <abartlet@samba.org>
Wed, 6 Sep 2017 04:24:35 +0000 (6 16:24 +1200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 Sep 2017 15:48:26 +0000 (14 17:48 +0200)
tree2ca422cdc3ff8cf54ee5cfba514f70db2da05d89
parent2ea6bebf73c05b8ca9a9e006f73cdd4c231427e9
repl_meta_data: Re-work printing of replicated entries

This re-work of our LDIF printing avoids some of the privacy issue from
printing the full LDIF at level 4, while showing the entry that actually fails.

Instead, we print the DN only at level 4, then the full message at 8.

While all of the DRS replication data is potentially sensitive
the passwords are most sensitive, and are now not printed unencrypted.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit e3988f8f74f4a11e8f26a548e0a33d20f4e863f7)
source4/dsdb/samdb/ldb_modules/repl_meta_data.c