svn commit: samba r18881 - in
branches/SAMBA_4_0/source/lib/ldb/common: .
idra at samba.org
idra at samba.org
Mon Sep 25 02:56:20 GMT 2006
Author: idra
Date: 2006-09-25 02:56:20 +0000 (Mon, 25 Sep 2006)
New Revision: 18881
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18881
Log:
remove wrong check and statement.
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.
Modified:
branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c 2006-09-25 02:49:56 UTC (rev 18880)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_msg.c 2006-09-25 02:56:20 UTC (rev 18881)
@@ -591,11 +591,6 @@
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++) {
More information about the samba-cvs
mailing list