summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-09-24 12:30:32 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-09-28 09:08:45 -0400
commit582ffb985b39a2c18288b0662d5117a870c0a0eb (patch)
tree5d4aefff7e9dfe3a09efa48238aaddbcf6e96f0a
parent23d46227e8b7cc54fdb72b5c258cfe7fcda70861 (diff)
downloadsssd_unused-582ffb985b39a2c18288b0662d5117a870c0a0eb.tar.gz
sssd_unused-582ffb985b39a2c18288b0662d5117a870c0a0eb.tar.xz
sssd_unused-582ffb985b39a2c18288b0662d5117a870c0a0eb.zip
IPA access: hostname comparison should be case-insensitive
-rw-r--r--src/providers/ipa/ipa_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index 3bd37732..083d8e7a 100644
--- a/src/providers/ipa/ipa_access.c
+++ b/src/providers/ipa/ipa_access.c
@@ -380,7 +380,7 @@ static void hbac_get_rule_info_step(struct tevent_req *req)
goto fail;
}
- if (strcmp(hostname, ipa_hostname) == 0) {
+ if (strcasecmp(hostname, ipa_hostname) == 0) {
hbac_ctx->ipa_host = hbac_ctx->hosts[i];
break;
}