mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
s4-ldb: fixed the ldb 'displayName=a,b' indexing bug
the problem was the inconsistency between the key form of DNs between the itdb used for indexing and the on disk form Thanks to Matthieu Patou for finding this bug! Signed-off-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
1cc471d69f
commit
fd59a7c4af
@ -1446,8 +1446,10 @@ static int delete_index(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, vo
|
||||
* index entry */
|
||||
list.dn = NULL;
|
||||
list.count = 0;
|
||||
v.data = key.dptr;
|
||||
v.length = strnlen((char *)key.dptr, key.dsize);
|
||||
|
||||
/* the offset of 3 is to remove the DN= prefix. */
|
||||
v.data = key.dptr + 3;
|
||||
v.length = strnlen((char *)key.dptr, key.dsize) - 3;
|
||||
|
||||
dn = ldb_dn_from_ldb_val(ltdb, ldb_module_get_ctx(module), &v);
|
||||
ret = ltdb_dn_list_store(module, dn, &list);
|
||||
|
Loading…
Reference in New Issue
Block a user