summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-06 18:57:06 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-06 18:57:06 +1100
commit9c1e230bc217e7d1ce0ef713a17982a8536584a1 (patch)
tree248584ff07d46f1f1405fd80d2229825a3c47ef0 /source4/lib
parentb43479741a3d9ae1abb91a5297a36f9d5e6d864b (diff)
downloadsamba-9c1e230bc217e7d1ce0ef713a17982a8536584a1.tar.gz
samba-9c1e230bc217e7d1ce0ef713a17982a8536584a1.tar.bz2
samba-9c1e230bc217e7d1ce0ef713a17982a8536584a1.zip
s4-ldb: fixed error on single value error
When you try to add a 2nd value to a single valued attribute you get LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS. w2k8-r2 join to s4 relies on this error, doing a replace after it sees the error
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 08208959f3..66a10b6413 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -664,7 +664,7 @@ int ltdb_modify_internal(struct ldb_module *module,
* exists in the object, then we violoate the
* single-value rule */
if (a && a->flags & LDB_ATTR_FLAG_SINGLE_VALUE) {
- ret = LDB_ERR_CONSTRAINT_VIOLATION;
+ ret = LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS;
goto failed;
}