Blame SOURCES/0044-ad-make-ad_enabled_domains-case-insensitive.patch

5cd47f
From 0b6f144084ec3ed96eb2c60bed7bea5d6c15f15c Mon Sep 17 00:00:00 2001
5cd47f
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
5cd47f
Date: Mon, 12 Aug 2019 09:40:28 +0200
5cd47f
Subject: [PATCH 44/44] ad: make ad_enabled_domains case insensitive
5cd47f
5cd47f
The rest of the code that works with ad_enabled_domains options
5cd47f
is case insensitive so we rather should be consistent.
5cd47f
5cd47f
Reviewed-by: Sumit Bose <sbose@redhat.com>
5cd47f
(cherry picked from commit b3c3542188e50770b431942c0b603e6f2733cb33)
5cd47f
---
5cd47f
 src/providers/ad/ad_subdomains.c | 2 +-
5cd47f
 1 file changed, 1 insertion(+), 1 deletion(-)
5cd47f
5cd47f
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
5cd47f
index 0f6d781ae..e3e3d3ece 100644
5cd47f
--- a/src/providers/ad/ad_subdomains.c
5cd47f
+++ b/src/providers/ad/ad_subdomains.c
5cd47f
@@ -190,7 +190,7 @@ static errno_t ad_get_enabled_domains(TALLOC_CTX *mem_ctx,
5cd47f
 
5cd47f
     is_ad_in_domains = false;
5cd47f
     for (int i = 0; i < count; i++) {
5cd47f
-        is_ad_in_domains += strcmp(ad_domain, domains[i]) == 0 ? true : false;
5cd47f
+        is_ad_in_domains += strcasecmp(ad_domain, domains[i]) == 0 ? true : false;
5cd47f
     }
5cd47f
 
5cd47f
     if (is_ad_in_domains == false) {
5cd47f
-- 
5cd47f
2.20.1
5cd47f