From c134171e39cbe5e788f075add32a4841451ab4de Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Fri, 24 May 2013 12:40:49 -0700 Subject: [PATCH] winbind: Print error code on connection error in ping_dc For debugging, it is useful to include the error code in the message. Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison Reviewed-by: Michael Adam Autobuild-User(master): Michael Adam Autobuild-Date(master): Sat May 25 23:11:23 CEST 2013 on sn-devel-104 --- source3/winbindd/winbindd_dual_srv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 744e251ba3d..e23d0487b62 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -690,7 +690,8 @@ NTSTATUS _wbint_PingDc(struct pipes_struct *p, struct wbint_PingDc *r) status = cm_connect_netlogon(domain, &netlogon_pipe); reset_cm_connection_on_error(domain, status); if (!NT_STATUS_IS_OK(status)) { - DEBUG(3, ("could not open handle to NETLOGON pipe\n")); + DEBUG(3, ("could not open handle to NETLOGON pipe: %s\n", + nt_errstr(status))); return status; } -- 2.11.4.GIT