Blob Blame History Raw
From 9118f124fad5fe15c5beb910db08794d9b3d2685 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose@redhat.com>
Date: Fri, 24 Jan 2014 16:52:22 +0100
Subject: [PATCH 72/73] AD SRV: use right domain name for CLDAP ping

Currently always the name of the configured domain was passed to the
CLDAP request. This will fail if the CLDAP request is send to a DC form
a different domain.
---
 src/providers/ad/ad_srv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/providers/ad/ad_srv.c b/src/providers/ad/ad_srv.c
index a238c192e495c3ff6330123d8e53d7d480e88e1b..99502e431e7b8b053e6ec58780abfd10859937be 100644
--- a/src/providers/ad/ad_srv.c
+++ b/src/providers/ad/ad_srv.c
@@ -723,7 +723,7 @@ static void ad_srv_plugin_dcs_done(struct tevent_req *subreq)
                                      state->ctx->be_res,
                                      state->ctx->host_dbs,
                                      state->ctx->opts,
-                                     state->ctx->ad_domain,
+                                     state->discovery_domain,
                                      dcs, num_dcs);
     if (subreq == NULL) {
         ret = ENOMEM;
-- 
1.8.4.2