s4-cldap: print all the DNS servers found
authorAndrew Tridgell <tridge@samba.org>
Fri, 5 Nov 2010 07:56:46 +0000 (18:56 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 5 Nov 2010 12:42:09 +0000 (23:42 +1100)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/libcli/finddcs_cldap.c

index 4c21f00f83eb3ca77fcfca6817689c34f1ecd00d..bbb221cfee17dc0e02e61b6042befdc377950f12 100644 (file)
@@ -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);