From 46af069a1abdaed70d0602e223dbe54723f07dd6 Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@openldap.org>
Date: Mon, 18 Jul 2011 12:53:23 -0700
Subject: [PATCH] Only return requested attrs in sssvlv response

---
 servers/slapd/overlays/sssvlv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/servers/slapd/overlays/sssvlv.c b/servers/slapd/overlays/sssvlv.c
index aded94abcf..ea7f769cde 100644
--- a/servers/slapd/overlays/sssvlv.c
+++ b/servers/slapd/overlays/sssvlv.c
@@ -630,6 +630,8 @@ static void send_entry(
 	if ( !so->so_tree )
 		return;
 
+	rs->sr_attrs = op->ors_attrs;
+
 	/* RFC 2891: If critical then send the entries iff they were
 	 * succesfully sorted.  If non-critical send all entries
 	 * whether they were sorted or not.
-- 
GitLab