git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb88f6f
)
LDB:ldb_tdb.c - also special entries should be checked for duplicate values
author
Matthias Dieter Wallnöfer
<mdw@samba.org>
Tue, 4 Sep 2012 17:02:02 +0000
(19:02 +0200)
committer
Matthias Dieter Wallnöfer
<mdw@samba.org>
Thu, 6 Sep 2012 07:27:14 +0000
(09:27 +0200)
The exclusion can be removed since the special attribute (@...) handling has
been fixed.
lib/ldb/ldb_tdb/ldb_tdb.c
patch
|
blob
|
history
diff --git
a/lib/ldb/ldb_tdb/ldb_tdb.c
b/lib/ldb/ldb_tdb/ldb_tdb.c
index 3c181509c37c7c4f0a4bc6054fa77805136eeb9d..cee6e7c127991bc276634bb7ff660f8de75d0a00 100644
(file)
--- a/
lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/
lib/ldb/ldb_tdb/ldb_tdb.c
@@
-337,12
+337,6
@@
static int ltdb_add_internal(struct ldb_module *module,
return LDB_ERR_CONSTRAINT_VIOLATION;
}
- /* Do not check "@ATTRIBUTES" for duplicated values */
- if (ldb_dn_is_special(msg->dn) &&
- ldb_dn_check_special(msg->dn, LTDB_ATTRIBUTES)) {
- continue;
- }
-
/* TODO: This is O(n^2) - replace with more efficient check */
for (j=0; j<el->num_values; j++) {
if (ldb_msg_find_val(el, &el->values[j]) != &el->values[j]) {