summaryrefslogtreecommitdiff
path: root/src/responder
diff options
context:
space:
mode:
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/nss/nsssrv_cmd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 1c94ff78..85d83e32 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -1801,7 +1801,13 @@ static int fill_grent(struct sss_packet *packet,
memnum = 0;
for (j = 0; j < el->num_values; j++) {
- tmpstr = (char *)el->values[j].data;
+ tmpstr = sss_get_cased_name(tmp_ctx, (char *)el->values[j].data,
+ dom->case_sensitive);
+ if (tmpstr == NULL) {
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("sss_get_cased_name failed, skipping\n"));
+ continue;
+ }
if (nctx->filter_users_in_groups) {
ret = sss_ncache_check_user(nctx->ncache,