Revert "winbind: Retry after SESSION_EXPIRED error in ping-dc"
[obnox/samba/samba-obnox.git] / source3 / winbindd / winbindd_dual_srv.c
index 44e4842ec22e25a94f2f1c16e48405358d737bb3..cdd9bbd61680830bf4acb1cd50b97e2df5604f09 100644 (file)
@@ -741,14 +741,6 @@ NTSTATUS _wbint_PingDc(struct pipes_struct *p, struct wbint_PingDc *r)
 
 reconnect:
        status = cm_connect_netlogon(domain, &netlogon_pipe);
-       if (NT_STATUS_EQUAL(status, NT_STATUS_NETWORK_SESSION_EXPIRED)) {
-               /*
-                * Retry to open new connection with new kerberos ticket.
-                */
-               invalidate_cm_connection(domain);
-               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: %s\n",