diff options
author | Jeremy Allison <jra@samba.org> | 2009-07-30 08:55:01 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-08-13 14:27:25 +0200 |
commit | c934258554221cec41cab95b35fa6e7d64aae2a1 (patch) | |
tree | 4a24146575e2b906254713022aa5edac02f34dc7 /source3/libads/cldap.c | |
parent | d761bb2f13e46168f0a7ba417b399a267ab88db5 (diff) | |
download | samba-c934258554221cec41cab95b35fa6e7d64aae2a1.tar.gz |
s3/cldap: Improve debug messages.
This patch was made to debug bug #6437.
(cherry picked from commit 47baa5de907c0162dec079c3636e7728f93c8b2f)
Diffstat (limited to 'source3/libads/cldap.c')
-rw-r--r-- | source3/libads/cldap.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c index d66e35cacb8..ae087d976cf 100644 --- a/source3/libads/cldap.c +++ b/source3/libads/cldap.c @@ -151,14 +151,19 @@ static int recv_cldap_netlogon(TALLOC_CTX *mem_ctx, } if (ret == 0) { - DEBUG(1,("no reply received to cldap netlogon\n")); + DEBUG(1,("no reply received to cldap netlogon " + "(select timeout %u sec)\n", + (unsigned int)timeout.tv_sec)); data_blob_free(&blob); return -1; } ret = read(sock, blob.data, blob.length); if (ret <= 0) { - DEBUG(1,("no reply received to cldap netlogon\n")); + DEBUG(1,("no reply received to cldap netlogon " + "(ret = %d: Error = %s)\n", + ret, + ret == -1 ? strerror(errno) : "" )); data_blob_free(&blob); return -1; } @@ -251,8 +256,10 @@ bool ads_cldap_netlogon(TALLOC_CTX *mem_ctx, sock = open_udp_socket(server, LDAP_PORT ); if (sock == -1) { - DEBUG(2,("ads_cldap_netlogon: Failed to open udp socket to %s\n", - server)); + DEBUG(2,("ads_cldap_netlogon: Failed to open udp socket to %s. " + "Error %s\n", + server, + strerror(errno) )); return False; } |