From df83913eb1b154a07f7da85fa9d6903c0a8a08b9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 25 Sep 2006 02:56:20 +0000 Subject: r18881: remove wrong check and statement. 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 | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c index 52c6b82484..92c537a8fa 100644 --- a/source4/lib/ldb/common/ldb_msg.c +++ b/source4/lib/ldb/common/ldb_msg.c @@ -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++) { -- cgit