[SSSD] [PATCH] IPA access: hostname comparison should be case-insensitive
Jakub Hrozek
jhrozek at redhat.com
Sun Sep 25 14:09:16 UTC 2011
Hostnames in general are case-insensitive (see RFC 952 for details).
-------------- next part --------------
>From 263598a4224de2c4e85bd46c843b5c200ad93c92 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Sat, 24 Sep 2011 12:30:32 +0200
Subject: [PATCH] IPA access: hostname comparison should be case-insensitive
---
src/providers/ipa/ipa_access.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c
index a74d6a9..10f1cb7 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;
}
--
1.7.6.2
More information about the sssd-devel
mailing list