[SSSD] [PATCH] nss: group enumeration fix
Sumit Bose
sbose at redhat.com
Fri Oct 24 10:20:04 UTC 2014
Hi,
this patch fixes an issue Lukas found while doing regression testing with
the new view/override code.
bye,
Sumit
-------------- next part --------------
From 1dc1db1672b55d14d2f654d108bfe63e4ba30a8d Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Fri, 24 Oct 2014 11:28:54 +0200
Subject: [PATCH] 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
---
src/responder/nss/nsssrv_cmd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 4ec99c1..278e6d3 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -2677,6 +2677,8 @@ static int fill_grent(struct sss_packet *packet,
/* Override names are not fully qualified */
add_domain = true;
}
+ } else {
+ orig_name = NULL;
}
if (orig_name == NULL) {
orig_name = ldb_msg_find_attr_as_string(msg,
--
1.8.3.1
More information about the sssd-devel
mailing list