summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-10-24 11:28:54 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-27 19:07:44 +0100
commit4b2b722319f11c81c06f488f3962a6b6280f4b9f (patch)
treeab287aa5a94d810bbbf91f9abe59cd50aa3c0f31 /src
parentb1593daeecdb40c72ef8c58546bda65c57d4e35c (diff)
downloadsssd-4b2b722319f11c81c06f488f3962a6b6280f4b9f.tar.gz
sssd-4b2b722319f11c81c06f488f3962a6b6280f4b9f.tar.xz
sssd-4b2b722319f11c81c06f488f3962a6b6280f4b9f.zip
nss: group enumeration fix
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 <lslebodn@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/responder/nss/nsssrv_cmd.c3
1 files changed, 3 insertions, 0 deletions
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,