s4-finddcs: show required server type bits on failure
authorAndrew Tridgell <tridge@samba.org>
Tue, 14 Sep 2010 23:20:59 +0000 (09:20 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 05:39:36 +0000 (15:39 +1000)
when we skip a DC because it doesn't have the required server type
bits, show what bits we wanted

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/libcli/finddcs_cldap.c

index 949002bd51d1587b93f406389d5552e045198b8f..ec3bc25fb1fcc6b8a09cf21457fd26a9f8c7f7e2 100644 (file)
@@ -222,9 +222,10 @@ static void finddcs_cldap_netlogon_replied(struct tevent_req *subreq)
        if (state->minimum_dc_flags !=
            (state->minimum_dc_flags & state->netlogon->out.netlogon.data.nt5_ex.server_type)) {
                /* the server didn't match the minimum requirements */
-               DEBUG(4,(__location__ ": Skipping DC %s with server_type=0x%08x\n",
+               DEBUG(4,(__location__ ": Skipping DC %s with server_type=0x%08x - required 0x%08x\n",
                         state->srv_addresses[state->srv_address_index],
-                        state->netlogon->out.netlogon.data.nt5_ex.server_type));
+                        state->netlogon->out.netlogon.data.nt5_ex.server_type,
+                        state->minimum_dc_flags));
                state->srv_address_index++;
                finddcs_cldap_next_server(state);
                return;