Blame SOURCES/0109-RESPONDER_COMMON-Improve-domaiN_resolution_order-deb.patch

bb7cd1
From 326442dc734de72b950a47c5fe2b3ac6a1dfc35e Mon Sep 17 00:00:00 2001
bb7cd1
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <fidencio@redhat.com>
bb7cd1
Date: Mon, 24 Apr 2017 21:09:02 +0200
bb7cd1
Subject: [PATCH 109/110] RESPONDER_COMMON: Improve domaiN_resolution_order
bb7cd1
 debug messages
bb7cd1
MIME-Version: 1.0
bb7cd1
Content-Type: text/plain; charset=UTF-8
bb7cd1
Content-Transfer-Encoding: 8bit
bb7cd1
bb7cd1
Indicate whether a domain_resolution_order has been used and where
bb7cd1
it came from.
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 213048fd9a5e800deb74cb5b7f0eaf465945c640)
bb7cd1
---
bb7cd1
 src/responder/common/responder_common.c | 6 ++++++
bb7cd1
 1 file changed, 6 insertions(+)
bb7cd1
bb7cd1
diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c
bb7cd1
index 62b71b5104fdbb585d086d44d2ca2ab9717dd788..7496d293fddb3e947d59a4f2aaeb2c83234dfcc7 100644
bb7cd1
--- a/src/responder/common/responder_common.c
bb7cd1
+++ b/src/responder/common/responder_common.c
bb7cd1
@@ -1594,6 +1594,8 @@ errno_t sss_resp_populate_cr_domains(struct resp_ctx *rctx)
bb7cd1
                 rctx, rctx->domains,
bb7cd1
                 rctx->domain_resolution_order, &cr_domains);
bb7cd1
         if (ret == EOK) {
bb7cd1
+            DEBUG(SSSDBG_TRACE_FUNC,
bb7cd1
+                  "Using domain_resolution_order from sssd.conf\n");
bb7cd1
             goto done;
bb7cd1
         } else {
bb7cd1
             DEBUG(SSSDBG_MINOR_FAILURE,
bb7cd1
@@ -1624,6 +1626,8 @@ errno_t sss_resp_populate_cr_domains(struct resp_ctx *rctx)
bb7cd1
                                                        dom->sysdb,
bb7cd1
                                                        &cr_domains);
bb7cd1
         if (ret == EOK) {
bb7cd1
+            DEBUG(SSSDBG_TRACE_FUNC,
bb7cd1
+                  "Using domain_resolution_order from IPA ID View\n");
bb7cd1
             goto done;
bb7cd1
         }
bb7cd1
 
bb7cd1
@@ -1641,6 +1645,8 @@ errno_t sss_resp_populate_cr_domains(struct resp_ctx *rctx)
bb7cd1
                                                   dom->sysdb, dom->name,
bb7cd1
                                                   &cr_domains);
bb7cd1
     if (ret == EOK) {
bb7cd1
+        DEBUG(SSSDBG_TRACE_FUNC,
bb7cd1
+              "Using domain_resolution_order from IPA Config\n");
bb7cd1
         goto done;
bb7cd1
     }
bb7cd1
 
bb7cd1
-- 
bb7cd1
2.9.3
bb7cd1