svn commit: samba r14390 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .

idra at samba.org idra at samba.org
Tue Mar 14 17:39:02 GMT 2006


Author: idra
Date: 2006-03-14 17:39:02 +0000 (Tue, 14 Mar 2006)
New Revision: 14390

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14390

Log:

the rootdse does not show a distinguishedName attribute


Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c	2006-03-14 17:34:00 UTC (rev 14389)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c	2006-03-14 17:39:02 UTC (rev 14390)
@@ -54,6 +54,9 @@
 
 	msg->dn = ldb_dn_explode(msg, "");
 
+	/* don't return the distinduishedName attribute if any */
+	ldb_msg_remove_attr(msg, "distinguishedName");
+
 	if (do_attribute(attrs, "currentTime")) {
 		if (ldb_msg_add_steal_string(msg, "currentTime", 
 					     ldb_timestring(msg, time(NULL))) != 0) {



More information about the samba-cvs mailing list