dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

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

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