summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-11-05 17:08:52 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-05 23:42:08 +1100
commit14f455ba9955871fa8882edb8de788d2760c0cb0 (patch)
treed21e90c3b067af61e671ebfee3782113a06add4a
parent0a2642c7dc8589c2fc8524e370a2cfeb3064eb28 (diff)
downloadsamba-14f455ba9955871fa8882edb8de788d2760c0cb0.tar.gz
samba-14f455ba9955871fa8882edb8de788d2760c0cb0.tar.bz2
samba-14f455ba9955871fa8882edb8de788d2760c0cb0.zip
s4-kerberos Mention the remote address we fail to contact the KDC on
-rw-r--r--source4/auth/kerberos/krb5_init_context.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/auth/kerberos/krb5_init_context.c b/source4/auth/kerberos/krb5_init_context.c
index 2f1416d3fe..6727de0f99 100644
--- a/source4/auth/kerberos/krb5_init_context.c
+++ b/source4/auth/kerberos/krb5_init_context.c
@@ -29,6 +29,7 @@
#include "system/network.h"
#include "param/param.h"
#include "libcli/resolve/resolve.h"
+#include "../lib/tsocket/tsocket.h"
/*
context structure for operations on cldap packets
@@ -367,7 +368,15 @@ krb5_error_code smb_krb5_send_and_recv_func(krb5_context context,
}
if (!NT_STATUS_IS_OK(smb_krb5->status)) {
- DEBUG(2,("Error reading smb_krb5 reply packet: %s\n", nt_errstr(smb_krb5->status)));
+ struct tsocket_address *addr = socket_address_to_tsocket_address(smb_krb5, remote_addr);
+ const char *addr_string = NULL;
+ if (addr) {
+ addr_string = tsocket_address_inet_addr_string(addr, smb_krb5);
+ } else {
+ addr_string = NULL;
+ }
+ DEBUG(2,("Error reading smb_krb5 reply packet: %s from %s\n", nt_errstr(smb_krb5->status),
+ addr_string));
talloc_free(smb_krb5);
continue;
}