From 18e1af99e7af1208e972c2ee9d3498f2de805dd5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Tue, 30 Apr 2013 15:25:54 +0200
Subject: [PATCH 7/7] dns srv plugin: compare domain names case insensitive

---
 src/providers/fail_over_srv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/fail_over_srv.c b/src/providers/fail_over_srv.c
index c16bea2774c54ba282f005165f4b76c6335fdd7f..9ff3de982a4a178a39a110e54f4f17b6e4b2d889 100644
--- a/src/providers/fail_over_srv.c
+++ b/src/providers/fail_over_srv.c
@@ -585,7 +585,7 @@ static errno_t fo_resolve_srv_dns_discover(struct tevent_req *req)
             goto done;
         }
 
-        if (strcmp(ctx->detected_domain, ctx->sssd_domain) != 0) {
+        if (strcasecmp(ctx->detected_domain, ctx->sssd_domain) != 0) {
             domains[1] = talloc_strdup(domains, ctx->sssd_domain);
             if (domains[1] == NULL) {
                 ret = ENOMEM;
-- 
1.7.11.7

