diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-01-12 21:42:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:50:56 -0500 |
commit | e0f69bf1d379d3026f4528f813adf96163738e58 (patch) | |
tree | eaf269d1f3401f3407b61bf5945a7de51d22c14f /source4/libnet | |
parent | 15421cd7a2ce4dd4a79d5d8bee72f5b71b5b4104 (diff) | |
download | samba-e0f69bf1d379d3026f4528f813adf96163738e58.tar.gz samba-e0f69bf1d379d3026f4528f813adf96163738e58.tar.bz2 samba-e0f69bf1d379d3026f4528f813adf96163738e58.zip |
r12872: Add some more detail to debug message.
Andrew Bartlett
(This used to be commit cefba10bd5ed1f6d10a071e4239088d91f661a36)
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_vampire.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index 26e3939205..da8c3b49d1 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -219,9 +219,15 @@ NTSTATUS libnet_SamSync_netlogon(struct libnet_context *ctx, TALLOC_CTX *mem_ctx /* connect to the NETLOGON pipe of the PDC */ nt_status = libnet_RpcConnect(machine_net_ctx, c, c); if (!NT_STATUS_IS_OK(nt_status)) { - r->out.error_string = talloc_asprintf(mem_ctx, - "Connection to NETLOGON pipe of DC failed: %s", - c->out.error_string); + if (r->in.binding_string) { + r->out.error_string = talloc_asprintf(mem_ctx, + "Connection to NETLOGON pipe of DC %s failed: %s", + r->in.binding_string, c->out.error_string); + } else { + r->out.error_string = talloc_asprintf(mem_ctx, + "Connection to NETLOGON pipe of DC for %s failed: %s", + c->in.name, c->out.error_string); + } talloc_free(samsync_ctx); return nt_status; } |