git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d76af6
)
r14390: the rootdse does not show a distinguishedName attribute
author
Simo Sorce
<idra@samba.org>
Tue, 14 Mar 2006 17:39:02 +0000
(17:39 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:57:18 +0000
(13:57 -0500)
source/dsdb/samdb/ldb_modules/rootdse.c
patch
|
blob
|
history
diff --git
a/source/dsdb/samdb/ldb_modules/rootdse.c
b/source/dsdb/samdb/ldb_modules/rootdse.c
index 7ae96a343129cd562aef4986193a562580897130..84622357f8b140ca5323f7a4004b3d62c355c493 100644
(file)
--- a/
source/dsdb/samdb/ldb_modules/rootdse.c
+++ b/
source/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) {