summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-24 15:48:53 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-04-24 14:28:26 -0400
commit25912ba00b14f06db32b982fd067c3fa0a09e99f (patch)
tree426d5b7bfaeb347a28063c004cf33687f45dccd0
parentf34e96625d745c8fd13bf31107e0c66f1fbf1a65 (diff)
downloadsssd-25912ba00b14f06db32b982fd067c3fa0a09e99f.tar.gz
sssd-25912ba00b14f06db32b982fd067c3fa0a09e99f.tar.bz2
sssd-25912ba00b14f06db32b982fd067c3fa0a09e99f.zip
Lowercase group members in case-insensitive domains
https://fedorahosted.org/sssd/ticket/1312
-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,