s4:vampire Print error message when we fail on the CLDAP ping
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Nov 2009 09:31:42 +0000 (20:31 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Nov 2009 05:34:08 +0000 (16:34 +1100)
Andrew Bartlett

source4/libnet/libnet_become_dc.c

index 6668be83ac8c619837b470f89f97c2b83acd766e..5e40f867507aa7a9633bc3018d0475e207045104 100644 (file)
@@ -784,8 +784,13 @@ static void becomeDC_recv_cldap(struct tevent_req *req)
                                        lp_iconv_convenience(s->libnet->lp_ctx),
                                        s, &s->cldap.io);
        talloc_free(req);
-       if (!composite_is_ok(c)) return;
-
+       if (!composite_is_ok(c)) {
+               DEBUG(0,("Failed to send, receive or parse CLDAP reply from server %s for our host %s: %s\n", 
+                        s->cldap.io.in.dest_address, 
+                        s->cldap.io.in.host, 
+                        nt_errstr(c->status)));
+               return;
+       }
        s->cldap.netlogon = s->cldap.io.out.netlogon.data.nt5_ex;
 
        s->domain.dns_name              = s->cldap.netlogon.dns_domain;