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:39 -0400
commitfca3395e2de8ac77563c705f494c57d3a7b499fe (patch)
tree1a6e5b16b124f2a29ee61ce4218336d9216bf7c2
parentbb94b50538ccd3351567916ae18499013ca061c3 (diff)
downloadsssd_unused-fca3395e2de8ac77563c705f494c57d3a7b499fe.tar.gz
sssd_unused-fca3395e2de8ac77563c705f494c57d3a7b499fe.tar.xz
sssd_unused-fca3395e2de8ac77563c705f494c57d3a7b499fe.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;
}