summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-05 18:56:46 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-05 23:42:09 +1100
commit158ae8a1485a7d0d27b8a0cbdd98993f9a98ff67 (patch)
treed16a3bb9117d3a9c5aa2eb7963c1f01a2af81b18
parenteaabb5950fe89c15b575ffb37b35137d8a848c01 (diff)
downloadsamba-158ae8a1485a7d0d27b8a0cbdd98993f9a98ff67.tar.gz
samba-158ae8a1485a7d0d27b8a0cbdd98993f9a98ff67.tar.bz2
samba-158ae8a1485a7d0d27b8a0cbdd98993f9a98ff67.zip
s4-cldap: print all the DNS servers found
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/libcli/finddcs_cldap.c5
1 files changed, 5 insertions, 0 deletions
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);