summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2017-05-26 15:17:21 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-06-15 17:33:10 +0200
commit990b23d7b6f3099bb471234590b92ed82cd2b5a9 (patch)
tree0ce425b71823a280c2b0224c159450f6f0577c0e /lib
parent6f956cce62c334bb52f593a5d5e0b0a4e3672420 (diff)
downloadsamba-990b23d7b6f3099bb471234590b92ed82cd2b5a9.tar.gz
replmd: check single values in replmd_add_fix_la
repl_meta_data knows whether linked attributes are appropriately [un-]duplicated, and this is how it tells ldb_tdb that. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Pair-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/ldb_tdb/ldb_tdb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ldb/ldb_tdb/ldb_tdb.c b/lib/ldb/ldb_tdb/ldb_tdb.c
index 1822ea01a08..f470e023d19 100644
--- a/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -355,7 +355,9 @@ static int ltdb_add_internal(struct ldb_module *module,
continue;
}
- if (check_single_value) {
+ if (check_single_value &&
+ !(el->flags &
+ LDB_FLAG_INTERNAL_DISABLE_SINGLE_VALUE_CHECK)) {
struct ldb_val *duplicate = NULL;
ret = ldb_msg_find_duplicate_val(ldb, discard_const(msg),