summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-11-09 20:31:42 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-12 16:34:08 +1100
commitd053584443613177bc8e7e18c594378baf9df34d (patch)
tree448a271b0fa8b11843812734a38006487d91b1f5
parent6fd6dc10897763670bf116746a6d8c2041b2bacd (diff)
downloadsamba-d053584443613177bc8e7e18c594378baf9df34d.tar.gz
samba-d053584443613177bc8e7e18c594378baf9df34d.tar.bz2
samba-d053584443613177bc8e7e18c594378baf9df34d.zip
s4:vampire Print error message when we fail on the CLDAP ping
Andrew Bartlett
-rw-r--r--source4/libnet/libnet_become_dc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source4/libnet/libnet_become_dc.c b/source4/libnet/libnet_become_dc.c
index 6668be83ac..5e40f86750 100644
--- a/source4/libnet/libnet_become_dc.c
+++ b/source4/libnet/libnet_become_dc.c
@@ -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;