summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-03-14 17:39:02 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:57:18 -0500
commit265f596e50e78b9b7cbf29dabcbc695239b92617 (patch)
tree494bee65939404630a4b6bce1e945b042267001e /source4/dsdb/samdb/ldb_modules
parent331288811985ef894660cc28afd5fd04cd1f953b (diff)
downloadsamba-265f596e50e78b9b7cbf29dabcbc695239b92617.tar.gz
samba-265f596e50e78b9b7cbf29dabcbc695239b92617.tar.bz2
samba-265f596e50e78b9b7cbf29dabcbc695239b92617.zip
r14390: the rootdse does not show a distinguishedName attribute
(This used to be commit 179e62d0931b382dc646b90fa8f4d418b2286823)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c3
1 files changed, 3 insertions, 0 deletions
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) {