winbind: Print error code on connection error in ping_dc
authorChristof Schmitt <christof.schmitt@us.ibm.com>
Fri, 24 May 2013 19:40:49 +0000 (12:40 -0700)
committerMichael Adam <obnox@samba.org>
Sat, 25 May 2013 21:11:23 +0000 (23:11 +0200)
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

source3/winbindd/winbindd_dual_srv.c

index 744e251ba3de4eb3427ad4c8e9de743605811fbc..e23d0487b628aea1250a31ddf6d57fa086f8e8aa 100644 (file)
@@ -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;
         }