From 1555659e7801c1f924dcd58d1c277dbe1191deb0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 19 Sep 2010 12:31:33 -0700 Subject: s4-cldap: improved debug msgs in finddcs_cldap() --- source4/libcli/finddcs_cldap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/libcli/finddcs_cldap.c b/source4/libcli/finddcs_cldap.c index b8cc5cb146..b7a8324c0f 100644 --- a/source4/libcli/finddcs_cldap.c +++ b/source4/libcli/finddcs_cldap.c @@ -167,7 +167,7 @@ static void finddcs_cldap_next_server(struct finddcs_cldap_state *state) if (state->srv_addresses[state->srv_address_index] == NULL) { tevent_req_nterror(state->req, NT_STATUS_OBJECT_NAME_NOT_FOUND); - DEBUG(2,("No matching CLDAP server found\n")); + DEBUG(2,("finddcs: No matching CLDAP server found\n")); return; } @@ -248,10 +248,12 @@ static void finddcs_cldap_name_resolved(struct composite_context *ctx) status = resolve_name_recv(ctx, state, &address); if (tevent_req_nterror(state->req, status)) { - DEBUG(2,("No matching NBT <1c> server found\n")); + DEBUG(2,("finddcs: No matching NBT <1c> server found\n")); return; } + DEBUG(4,("finddcs: Found NBT <1c> server at %s\n", address)); + state->srv_addresses = talloc_array(state, const char *, 2); if (tevent_req_nomem(state->srv_addresses, state->req)) { return; @@ -281,7 +283,7 @@ static void finddcs_cldap_srv_resolved(struct composite_context *ctx) status = resolve_name_multiple_recv(ctx, state, &state->srv_addresses); if (tevent_req_nterror(state->req, status)) { - DEBUG(2,("Failed to find SRV record for %s\n", state->srv_name)); + DEBUG(2,("finddcs: Failed to find SRV record for %s\n", state->srv_name)); return; } -- cgit