r14390: the rootdse does not show a distinguishedName attribute
authorSimo Sorce <idra@samba.org>
Tue, 14 Mar 2006 17:39:02 +0000 (17:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:57:18 +0000 (13:57 -0500)
source/dsdb/samdb/ldb_modules/rootdse.c

index 7ae96a343129cd562aef4986193a562580897130..84622357f8b140ca5323f7a4004b3d62c355c493 100644 (file)
@@ -54,6 +54,9 @@ static int rootdse_add_dynamic(struct ldb_module *module, struct ldb_message *ms
 
        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) {