summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 10:15:59 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-03-04 22:07:24 +0100
commit746194cfc4e0c119e1947f79ffc7cb50d50b9f43 (patch)
treef18a9ea5ff05463d7f701f912e90386c48129ceb /source4
parent76fb23064e6346346b5a9908b7908695456b5748 (diff)
downloadsamba-746194cfc4e0c119e1947f79ffc7cb50d50b9f43.tar.gz
samba-746194cfc4e0c119e1947f79ffc7cb50d50b9f43.tar.bz2
samba-746194cfc4e0c119e1947f79ffc7cb50d50b9f43.zip
Revert "s4:objectclass LDB module - if we cannot find DN's parent then the DN itself is invalid"
This is not needed anymore with the new DN checking. This reverts commit 5896b7299331aedd065397d2078c62d85bcf68f6. Reviewed by: Tridge
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c
index b30505da02..d9015847e6 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass.c
@@ -421,9 +421,7 @@ static int objectclass_add(struct ldb_module *module, struct ldb_request *req)
/* get copy of parent DN */
parent_dn = ldb_dn_get_parent(ac, ac->req->op.add.message->dn);
if (parent_dn == NULL) {
- /* the DN itself might be wrong - therefore
- * "ERR_INVALID_DN_SYNTAX" fits better here. */
- return LDB_ERR_INVALID_DN_SYNTAX;
+ return ldb_operr(ldb);
}
ret = ldb_build_search_req(&search_req, ldb,