summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/common
diff options
context:
space:
mode:
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++) {