diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-04-24 15:48:53 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-04-24 14:28:26 -0400 |
commit | 25912ba00b14f06db32b982fd067c3fa0a09e99f (patch) | |
tree | 426d5b7bfaeb347a28063c004cf33687f45dccd0 /src/responder | |
parent | f34e96625d745c8fd13bf31107e0c66f1fbf1a65 (diff) | |
download | sssd-25912ba00b14f06db32b982fd067c3fa0a09e99f.tar.gz sssd-25912ba00b14f06db32b982fd067c3fa0a09e99f.tar.xz sssd-25912ba00b14f06db32b982fd067c3fa0a09e99f.zip |
Lowercase group members in case-insensitive domains
https://fedorahosted.org/sssd/ticket/1312
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/nss/nsssrv_cmd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c index 1c94ff78a..85d83e32f 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, |