Bug 534 - net rpc abortshutdown problems ( W2K )
net rpc abortshutdown problems ( W2K )
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: net utility
3.0.0
All Linux
: P3 normal
: none
Assigned To: Jim McDonough
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-09-29 08:39 UTC by Andres Ortega
Modified: 2005-11-14 09:24 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Ortega 2003-09-29 08:39:49 UTC
I was trying this command in my network. It worked for both w2k and Nt4 -> Both
machines shutdown properly ( using net rpc shutdown ). However, when I tried to
abort the shutdown -> only the NT 4 machine aborted it. The w2k machine
continued with the shutdown sequence, and it didn't abort.

Here is the debug = 4 output for both

NT 4 ( abortshutdown )

[2003/09/29 11:31:19, 3] libsmb/cliconnect.c:cli_start_connection(1290)
  Connecting to host=10.5.0.235
[2003/09/29 11:31:19, 3] lib/util_sock.c:open_socket_out(690)
  Connecting to 10.5.0.235 at port 445
[2003/09/29 11:31:19, 2] lib/util_sock.c:open_socket_out(726)
  error connecting to 10.5.0.235:445 (Connection refused)
[2003/09/29 11:31:19, 3] lib/util_sock.c:open_socket_out(690)
  Connecting to 10.5.0.235 at port 139
[2003/09/29 11:31:19, 1] libsmb/cliconnect.c:cli_start_connection(1305)
  session request to 10.5.0.235 failed (Called name not present)
[2003/09/29 11:31:19, 3] libsmb/cliconnect.c:cli_start_connection(1290)
  Connecting to host=10.5.0.235
[2003/09/29 11:31:19, 3] lib/util_sock.c:open_socket_out(690)
  Connecting to 10.5.0.235 at port 139
[2003/09/29 11:31:19, 4] lib/time.c:get_serverzone(122)
  Serverzone is 14400
[2003/09/29 11:31:19, 2] utils/net.c:main(758)
  return code = 0



W2K  ( abortshutdown )

[2003/09/29 11:34:15, 3] libsmb/cliconnect.c:cli_start_connection(1290)
  Connecting to host=10.5.0.16
[2003/09/29 11:34:15, 3] lib/util_sock.c:open_socket_out(690)
  Connecting to 10.5.0.16 at port 445
[2003/09/29 11:34:15, 4] lib/time.c:get_serverzone(122)
  Serverzone is 14400
[2003/09/29 11:34:15, 2] libsmb/cliconnect.c:cli_session_setup_spnego(635)
  Doing spnego session setup (blob length=16)
[2003/09/29 11:34:15, 3] libsmb/cliconnect.c:cli_session_setup_spnego(639)
  server didn't supply a full spnego negprot
[2003/09/29 11:34:15, 3] libsmb/ntlmssp.c:ntlmssp_client_challenge(469)
  Got challenge flags:
[2003/09/29 11:34:15, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
  Got NTLMSSP neg_flags=0x60890215
    NTLMSSP_NEGOTIATE_UNICODE
    NTLMSSP_REQUEST_TARGET
    NTLMSSP_NEGOTIATE_SIGN
    NTLMSSP_NEGOTIATE_NTLM
    NTLMSSP_NEGOTIATE_NTLM2
    NTLMSSP_CHAL_TARGET_INFO
    NTLMSSP_NEGOTIATE_128
    NTLMSSP_NEGOTIATE_KEY_EXCH
[2003/09/29 11:34:15, 3] libsmb/ntlmssp.c:ntlmssp_client_challenge(518)
  NTLMSSP: Set final flags:
[2003/09/29 11:34:15, 3] libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
  Got NTLMSSP neg_flags=0x60080215
    NTLMSSP_NEGOTIATE_UNICODE
    NTLMSSP_REQUEST_TARGET
    NTLMSSP_NEGOTIATE_SIGN
    NTLMSSP_NEGOTIATE_NTLM
    NTLMSSP_NEGOTIATE_NTLM2
    NTLMSSP_NEGOTIATE_128
    NTLMSSP_NEGOTIATE_KEY_EXCH
[2003/09/29 11:34:15, 2] utils/net.c:main(758)
  return code = 0

Hope these logs are useful to somebody ....
Comment 1 Tim Potter 2003-09-29 21:11:20 UTC
Can you post debug logs at level 10?  They show a lot more useful information.
Comment 2 Jim McDonough 2003-10-24 07:04:36 UTC
Latest CVS should fix this.  This is definitely bad behavior by win2k, but we now
try out the new initshutdown interface that win2k support and fall back to the
winreg pipe if needed (for older systems).
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:15:51 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.
Comment 4 Gerald (Jerry) Carter 2005-11-14 09:24:40 UTC
database cleanup