dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0110-CACHE_REQ_DOMAIN-debug-the-set-domain-resolution-ord.patch

bb7cd1
From 3671f188ff9e379022d62eaf7171f397f04ac153 Mon Sep 17 00:00:00 2001
bb7cd1
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
bb7cd1
Date: Tue, 25 Apr 2017 14:25:12 +0200
bb7cd1
Subject: [PATCH 110/110] CACHE_REQ_DOMAIN: debug the set domain resolution
bb7cd1
 order
bb7cd1
MIME-Version: 1.0
bb7cd1
Content-Type: text/plain; charset=UTF-8
bb7cd1
Content-Transfer-Encoding: 8bit
bb7cd1
bb7cd1
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
bb7cd1
bb7cd1
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
bb7cd1
(cherry picked from commit b78febe4c579f86f8007a27599605d1eb9f97a62)
bb7cd1
---
bb7cd1
 src/responder/common/cache_req/cache_req_domain.c | 11 +++++++++++
bb7cd1
 1 file changed, 11 insertions(+)
bb7cd1
bb7cd1
diff --git a/src/responder/common/cache_req/cache_req_domain.c b/src/responder/common/cache_req/cache_req_domain.c
bb7cd1
index 6d37db0f109d5343eb6d7f4272bea522d4c34cf7..2c238c9966d322bb542fa2047313ee9e5144edee 100644
bb7cd1
--- a/src/responder/common/cache_req/cache_req_domain.c
bb7cd1
+++ b/src/responder/common/cache_req/cache_req_domain.c
bb7cd1
@@ -191,6 +191,10 @@ cache_req_domain_new_list_from_domain_resolution_order(
bb7cd1
 
bb7cd1
     if (domain_resolution_order != NULL) {
bb7cd1
         if (strcmp(domain_resolution_order, ":") != 0) {
bb7cd1
+            DEBUG(SSSDBG_TRACE_FUNC,
bb7cd1
+                  "Domain resolution order list (split by ':'): \"%s\"\n",
bb7cd1
+                  domain_resolution_order);
bb7cd1
+
bb7cd1
             ret = split_on_separator(tmp_ctx, domain_resolution_order, ':',
bb7cd1
                                      true, true, &list, NULL);
bb7cd1
             if (ret != EOK) {
bb7cd1
@@ -199,7 +203,14 @@ cache_req_domain_new_list_from_domain_resolution_order(
bb7cd1
                         ret, sss_strerror(ret));
bb7cd1
                 goto done;
bb7cd1
             }
bb7cd1
+        } else {
bb7cd1
+            DEBUG(SSSDBG_TRACE_FUNC,
bb7cd1
+                  "Domain resolution order list: ':' "
bb7cd1
+                  "(do not use any specific order)\n");
bb7cd1
         }
bb7cd1
+    } else {
bb7cd1
+        DEBUG(SSSDBG_TRACE_FUNC,
bb7cd1
+              "Domain resolution order list: not set\n");
bb7cd1
     }
bb7cd1
 
bb7cd1
     cr_domains = cache_req_domain_new_list_from_string_list(mem_ctx, domains,
bb7cd1
-- 
bb7cd1
2.9.3
bb7cd1