ldb_tdb: Do not care about duplicates if single value check disabled
authorGarming Sam <garming@catalyst.net.nz>
Wed, 8 Mar 2017 04:12:21 +0000 (17:12 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 13 Mar 2017 04:10:10 +0000 (05:10 +0100)
commit3b5aeaba957696f17a6aac7d748e578886050c2b
tree26413b9d0ec075350144c50b32f2ccea27a7a87f
parent6bcc856b202838f47a8e62feac8b13d8a045e0c5
ldb_tdb: Do not care about duplicates if single value check disabled

This behaviour of ignoring duplicates with the flag
LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK is also used in the replace
case here.

When we add a forward DN+Binary link with a duplicate DN, this prevents
us from not being able to add the backlink because it appears to be a
duplicate here.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Bob Campbell <bobcampbell@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_tdb.c