Blob Blame History Raw
From 0b6f144084ec3ed96eb2c60bed7bea5d6c15f15c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Mon, 12 Aug 2019 09:40:28 +0200
Subject: [PATCH 44/44] ad: make ad_enabled_domains case insensitive

The rest of the code that works with ad_enabled_domains options
is case insensitive so we rather should be consistent.

Reviewed-by: Sumit Bose <sbose@redhat.com>
(cherry picked from commit b3c3542188e50770b431942c0b603e6f2733cb33)
---
 src/providers/ad/ad_subdomains.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
index 0f6d781ae..e3e3d3ece 100644
--- a/src/providers/ad/ad_subdomains.c
+++ b/src/providers/ad/ad_subdomains.c
@@ -190,7 +190,7 @@ static errno_t ad_get_enabled_domains(TALLOC_CTX *mem_ctx,
 
     is_ad_in_domains = false;
     for (int i = 0; i < count; i++) {
-        is_ad_in_domains += strcmp(ad_domain, domains[i]) == 0 ? true : false;
+        is_ad_in_domains += strcasecmp(ad_domain, domains[i]) == 0 ? true : false;
     }
 
     if (is_ad_in_domains == false) {
-- 
2.20.1