summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/common
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-09 08:22:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:21 -0500
commit25e233db5768f3dd90a87c5986dedbd75c2e439d (patch)
tree2afce6c4b0f323e0f4b1cd4bfeb661b083301274 /source3/lib/ldb/common
parent046a4756d4871a300caaa5fc100693734379173b (diff)
downloadsamba-25e233db5768f3dd90a87c5986dedbd75c2e439d.tar.gz
samba-25e233db5768f3dd90a87c5986dedbd75c2e439d.tar.bz2
samba-25e233db5768f3dd90a87c5986dedbd75c2e439d.zip
r19190: merge from samba4:
remove wrong check and statement. to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements. metze (This used to be commit b81cae4180452d2a14c445392fd828032e6eddec)
Diffstat (limited to 'source3/lib/ldb/common')
-rw-r--r--source3/lib/ldb/common/ldb_msg.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/lib/ldb/common/ldb_msg.c b/source3/lib/ldb/common/ldb_msg.c
index 809d965745..7e001f9180 100644
--- a/source3/lib/ldb/common/ldb_msg.c
+++ b/source3/lib/ldb/common/ldb_msg.c
@@ -229,7 +229,7 @@ int ldb_msg_add_string(struct ldb_message *msg,
if (val.length == 0) {
/* allow empty strings as non-existant attributes */
- return 0;
+ return LDB_SUCCESS;
}
return ldb_msg_add_value(msg, attr_name, &val);
@@ -596,11 +596,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++) {