summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-09-25 02:56:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:18 -0500
commitdf83913eb1b154a07f7da85fa9d6903c0a8a08b9 (patch)
tree448e40784a6bb380e4c8ae99fd0b2616aafdbce5 /source4/lib
parentc5718959e6a6d0454a870cbd311e707e69c98e85 (diff)
downloadsamba-df83913eb1b154a07f7da85fa9d6903c0a8a08b9.tar.gz
samba-df83913eb1b154a07f7da85fa9d6903c0a8a08b9.tar.bz2
samba-df83913eb1b154a07f7da85fa9d6903c0a8a08b9.zip
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)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb_msg.c5
1 files changed, 0 insertions, 5 deletions
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++) {