ldb_tdb: Prepare to handle rename with GUID index by using ltdb_search_base()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 10 Aug 2017 23:33:17 +0000 (11:33 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 22 Sep 2017 19:20:21 +0000 (21:20 +0200)
commitb2aff1236643652a738d64488943d6d1565fcac2
treef827c4cbec971c689f94959f547ed3da21fb0011
parentc24df8e43127b627f7cd70bf55f2bd5da8db61df
ldb_tdb: Prepare to handle rename with GUID index by using ltdb_search_base()

This will allow use of a GUID TDB key in the future.  While ltdb_search_base()
might be marginally slower than tdb_exists(), no allocation is done for the
attributes or DN, and renmaes are not a very common operation.

This allows a check if the target DN exists even when the direct DN -> key
link is broken.

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