ldb_tdb: Add a function to take a GUID and make the TDB_DATA key
authorAndrew Bartlett <abartlet@samba.org>
Tue, 15 Aug 2017 22:44:34 +0000 (10:44 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 22 Sep 2017 19:20:22 +0000 (21:20 +0200)
commitf26d1a8c5de931685b5de7a52a58ebcbf2ea5f88
treeafcd34f0503a024b09e93fcdef9c9f7f8e1c1582
parentaa68957f7f086fcedc9c0d5df7f29cbc7c002a26
ldb_tdb: Add a function to take a GUID and make the TDB_DATA key

This allows us to format the TDB key as DN=GUID=f7c953ee-cf9c-433f-b423-21ce04d09591
and so be compatible with an un-indexed search and a re-index with an old ldb.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_tdb.c
lib/ldb/ldb_tdb/ldb_tdb.h