summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb/ldb_tdb.c
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-07 20:31:22 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-06-07 20:31:22 +0200
commita75d271373dbbff973544865c2c9715510d67669 (patch)
treed1ac3104dae7083dae95007823905faf5137a9c9 /source4/lib/ldb/ldb_tdb/ldb_tdb.c
parent9a747d500fad699038ecf75615c680a9fd9e4cc7 (diff)
downloadsamba-a75d271373dbbff973544865c2c9715510d67669.tar.gz
samba-a75d271373dbbff973544865c2c9715510d67669.tar.bz2
samba-a75d271373dbbff973544865c2c9715510d67669.zip
s4:rdn_name LDB module - move the "distinguishedName" write prevent check here
In my eyes it fits better here than in the TDB backend code.
Diffstat (limited to 'source4/lib/ldb/ldb_tdb/ldb_tdb.c')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_tdb.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
index 42e1bd57b6..c80ecd0b43 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c
@@ -652,13 +652,6 @@ int ltdb_modify_internal(struct ldb_module *module,
const struct ldb_schema_attribute *a = ldb_schema_attribute_by_name(ldb, el->name);
const char *dn;
- if (ldb_attr_cmp(el->name, "distinguishedName") == 0) {
- ldb_asprintf_errstring(ldb, "it is not permitted to perform a modify on 'distinguishedName' (use rename instead): %s",
- ldb_dn_get_linearized(msg2->dn));
- ret = LDB_ERR_CONSTRAINT_VIOLATION;
- goto done;
- }
-
switch (msg->elements[i].flags & LDB_FLAG_MOD_MASK) {
case LDB_FLAG_MOD_ADD: