r18881: remove wrong check and statement.
authorSimo Sorce <idra@samba.org>
Mon, 25 Sep 2006 02:56:20 +0000 (02:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:18 +0000 (14:20 -0500)
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.
(This used to be commit 3e131177dae3536c07632fe09e7ebe877bcd9332)

source4/lib/ldb/common/ldb_msg.c

index 52c6b82484f7120db0c63434e117278fb0c209e7..92c537a8fabf48bfb1ec5c427074afba08fb646e 100644 (file)
@@ -591,11 +591,6 @@ int ldb_msg_sanity_check(struct ldb_context *ldb,
                ldb_set_errstring(ldb, "ldb message lacks a DN!");
                return LDB_ERR_INVALID_DN_SYNTAX;
        }
-       if (msg->dn->comp_num == 0) {
-               /* root dse has empty dn */
-               ldb_set_errstring(ldb, "DN on new ldb message is '' (not permitted)!");
-               return LDB_ERR_ENTRY_ALREADY_EXISTS;
-       }
 
        /* basic syntax checks */
        for (i = 0; i < msg->num_elements; i++) {