summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-05-14 00:22:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:44 -0500
commitf2548cd87339eca45b19b9f8173844ca932c96c3 (patch)
treea2f8880e17f67b28e4d48cacebc5b10d7d9634b8 /source4
parentc727f2ec5e8c978224ecd0640c6180dbe0a44455 (diff)
downloadsamba-f2548cd87339eca45b19b9f8173844ca932c96c3.tar.gz
samba-f2548cd87339eca45b19b9f8173844ca932c96c3.tar.bz2
samba-f2548cd87339eca45b19b9f8173844ca932c96c3.zip
r711: don't hide attributes inside the special ldb_tdb records (so the fact
that a attribute is hidden is not itself hidden!) (This used to be commit b42d1f39842ac25fee2238040ac01321f71a79c5)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index 25e22b3dd4..6b38a28296 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -136,7 +136,7 @@ static int msg_add_all_elements(struct ldb_context *ldb, struct ldb_message *ret
int i;
for (i=0;i<msg->num_elements;i++) {
int flags = ltdb_attribute_flags(ldb, msg->elements[i].name);
- if (flags & LTDB_FLAG_HIDDEN) {
+ if ((msg->dn[0] != '@') && (flags & LTDB_FLAG_HIDDEN)) {
continue;
}
if (msg_add_element(ldb, ret, &msg->elements[i]) != 0) {