|
|
905b4d |
From d8d007c12bac73df4931722c4f7b57fa778bf105 Mon Sep 17 00:00:00 2001
|
|
|
905b4d |
From: Sumit Bose <sbose@redhat.com>
|
|
|
905b4d |
Date: Fri, 24 Oct 2014 11:28:54 +0200
|
|
|
905b4d |
Subject: [PATCH 47/48] nss: group enumeration fix
|
|
|
905b4d |
MIME-Version: 1.0
|
|
|
905b4d |
Content-Type: text/plain; charset=UTF-8
|
|
|
905b4d |
Content-Transfer-Encoding: 8bit
|
|
|
905b4d |
|
|
|
905b4d |
The view/override patches introduced and issue with group enumeration
|
|
|
905b4d |
where all groups are returned with the same name. This patch should fix
|
|
|
905b4d |
it.
|
|
|
905b4d |
|
|
|
905b4d |
Fixes: https://fedorahosted.org/sssd/ticket/2475
|
|
|
905b4d |
|
|
|
905b4d |
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
|
|
|
905b4d |
(cherry picked from commit 4b2b722319f11c81c06f488f3962a6b6280f4b9f)
|
|
|
905b4d |
---
|
|
|
905b4d |
src/responder/nss/nsssrv_cmd.c | 3 +++
|
|
|
905b4d |
1 file changed, 3 insertions(+)
|
|
|
905b4d |
|
|
|
905b4d |
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
|
|
|
905b4d |
index 4ec99c153b25db26d482eec8da6ca52487967abc..9fca644be164e682f787bda61ea39afa8b703874 100644
|
|
|
905b4d |
--- a/src/responder/nss/nsssrv_cmd.c
|
|
|
905b4d |
+++ b/src/responder/nss/nsssrv_cmd.c
|
|
|
905b4d |
@@ -2669,6 +2669,9 @@ static int fill_grent(struct sss_packet *packet,
|
|
|
905b4d |
rsize = 0;
|
|
|
905b4d |
|
|
|
905b4d |
/* find group name/gid */
|
|
|
905b4d |
+
|
|
|
905b4d |
+ /* start with an empty name for each iteration */
|
|
|
905b4d |
+ orig_name = NULL;
|
|
|
905b4d |
if (DOM_HAS_VIEWS(dom)) {
|
|
|
905b4d |
orig_name = ldb_msg_find_attr_as_string(msg,
|
|
|
905b4d |
OVERRIDE_PREFIX SYSDB_NAME,
|
|
|
905b4d |
--
|
|
|
905b4d |
1.9.3
|
|
|
905b4d |
|