From 158ae8a1485a7d0d27b8a0cbdd98993f9a98ff67 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Nov 2010 18:56:46 +1100 Subject: s4-cldap: print all the DNS servers found Pair-Programmed-With: Andrew Bartlett --- source4/libcli/finddcs_cldap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c index 4c21f00f83..bbb221cfee 100644 --- a/source4/libcli/finddcs_cldap.c +++ b/source4/libcli/finddcs_cldap.c @@ -325,6 +325,7 @@ static void finddcs_cldap_srv_resolved(struct composite_context *ctx) struct finddcs_cldap_state *state = talloc_get_type(ctx->async.private_data, struct finddcs_cldap_state); NTSTATUS status; + unsigned i; status = resolve_name_multiple_recv(ctx, state, &state->srv_addresses); if (tevent_req_nterror(state->req, status)) { @@ -332,6 +333,10 @@ static void finddcs_cldap_srv_resolved(struct composite_context *ctx) return; } + for (i=0; state->srv_addresses[i]; i++) { + DEBUG(4,("finddcs: DNS server %u at '%s'\n", i, state->srv_addresses[i])); + } + state->srv_address_index = 0; status = cldap_socket_init(state, state->ev, NULL, NULL, &state->cldap); -- cgit