Author: abartlet
Date: 2006-01-12 21:42:26 +0000 (Thu, 12 Jan 2006)
New Revision: 12872

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12872

Log:
Add some more detail to debug message.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libnet/libnet_vampire.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_vampire.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_vampire.c   2006-01-12 18:06:05 UTC 
(rev 12871)
+++ branches/SAMBA_4_0/source/libnet/libnet_vampire.c   2006-01-12 21:42:26 UTC 
(rev 12872)
@@ -219,9 +219,15 @@
        /* 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;
        }

Reply via email to