Revert "s4:objectclass LDB module - if we cannot find DN's parent then the DN itself...
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 4 Mar 2011 09:15:59 +0000 (10:15 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 4 Mar 2011 21:07:24 +0000 (22:07 +0100)
This is not needed anymore with the new DN checking.

This reverts commit 5896b7299331aedd065397d2078c62d85bcf68f6.

Reviewed by: Tridge

source4/dsdb/samdb/ldb_modules/objectclass.c

index b30505da026f510a38391bbd0ded43ed32e2fe90..d9015847e6b24a8d420988e64345339557a38407 100644 (file)
@@ -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,