From 265f596e50e78b9b7cbf29dabcbc695239b92617 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 14 Mar 2006 17:39:02 +0000 Subject: r14390: the rootdse does not show a distinguishedName attribute (This used to be commit 179e62d0931b382dc646b90fa8f4d418b2286823) --- source4/dsdb/samdb/ldb_modules/rootdse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/dsdb/samdb/ldb_modules/rootdse.c') diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index 7ae96a3431..84622357f8 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -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) { -- cgit