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