ldb: Add ldbdump, based on tdbdump
commita71ad96bd046f1199e67b4fe8fc7783cbd8dd771
authorAndrew Bartlett <abartlet@samba.org>
Tue, 30 Oct 2012 04:41:27 +0000 (30 15:41 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 30 Oct 2012 22:56:11 +0000 (30 23:56 +0100)
tree566b6530d3c98b32486c8a874929c002ea857796
parent4b2f3c6dec997b0dd4bcafeae662a71ebd34e12b
ldb: Add ldbdump, based on tdbdump

This uses a tdb_traverse or (more usefully) the tdb_rescue API, like tdbdump.

The difference here is that it uses ldb helper functions to further
eliminate faulty records, which avoids creating duplicates in the output.

(The duplicates come from parts of records that are left in blank space
in the db, which tdb_rescue finds, but which are not actually a full
record).

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Oct 30 23:56:11 CET 2012 on sn-devel-104
lib/ldb/tools/ldbdump.c [new file with mode: 0644]
lib/ldb/wscript