diff options
author | Christof Schmitt <christof.schmitt@us.ibm.com> | 2013-05-24 12:40:49 -0700 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2013-05-25 23:11:23 +0200 |
commit | c134171e39cbe5e788f075add32a4841451ab4de (patch) | |
tree | 7e74723a3f8465edb791296863408cfba620b46f /source3/winbindd | |
parent | 92254d09e0ee5a7d9d0cd91fe1803f54e64d9a5f (diff) | |
download | samba-c134171e39cbe5e788f075add32a4841451ab4de.tar.gz samba-c134171e39cbe5e788f075add32a4841451ab4de.tar.bz2 samba-c134171e39cbe5e788f075add32a4841451ab4de.zip |
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 <christof.schmitt@us.ibm.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Sat May 25 23:11:23 CEST 2013 on sn-devel-104
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | 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 744e251ba3..e23d0487b6 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; } |