[PATCH] winbind: Print error code on connection error in ping_dc
Christof Schmitt
christof.schmitt at us.ibm.com
Sat May 25 12:35:11 MDT 2013
For debugging, it is useful to include the error code in the message.
Signed-off-by: Christof Schmitt <christof.schmitt at us.ibm.com>
---
source3/winbindd/winbindd_dual_srv.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c
index 744e251..e23d048 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;
}
--
1.7.1
More information about the samba-technical
mailing list