From e2ca6b2d5ed5e73e314b7e0fff4b55fa1eca0b74 Mon Sep 17 00:00:00 2001
From: Petr Cech <pcech@redhat.com>
Date: Tue, 14 Jun 2016 16:43:33 +0200
Subject: [PATCH 5/5] AD_PROVIDER: Enhanced debug message

In case we are not able to connect forest root AD
we could write its name.
---
 src/providers/ad/ad_subdomains.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c
index 4c62d4569d116832e240b15eb012fda11cd5ca7f..c53ba4d79deec050f71306a7722f677355a0f646 100644
--- a/src/providers/ad/ad_subdomains.c
+++ b/src/providers/ad/ad_subdomains.c
@@ -898,8 +898,8 @@ static void ad_subdomains_root_conn_done(struct tevent_req *req)
         be_mark_dom_offline(ctx->root_domain, be_req_get_be_ctx(ctx->be_req));
 
         DEBUG(SSSDBG_OP_FAILURE,
-              "Failed to connect to AD server: [%d](%s)\n",
-              ret, strerror(ret));
+              "Failed to connect to AD server '%s': [%d](%s)\n",
+              ctx->root_domain->name, ret, strerror(ret));
         goto fail;
     }
 
-- 
2.5.5

