mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
ldb_tdb: Optionally use GUID index values a direct TDB keys
This connects the GUID based index records to GUID based TDB keys. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
93b18984bd
commit
2f8a8c765f
@ -256,6 +256,10 @@ TDB_DATA ltdb_idx_to_key(struct ldb_module *module,
|
||||
struct ldb_context *ldb = ldb_module_get_ctx(module);
|
||||
struct ldb_dn *dn;
|
||||
|
||||
if (ltdb->cache->GUID_index_attribute != NULL) {
|
||||
return ltdb_guid_to_key(module, ltdb, mem_ctx, idx_val);
|
||||
}
|
||||
|
||||
dn = ldb_dn_from_ldb_val(mem_ctx, ldb, idx_val);
|
||||
if (dn == NULL) {
|
||||
errno = EINVAL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user