I set up a Samba server on RHEL 5.4 using 3.6.0pre1 with "max protocol = SMB2". The authentication process always fail when I try to use a Win7 client (7100RC) to access a share. Log shows smbd panic occurred and core dump points to line 643 in source3/smbd/smb2_sesssetup.c: 643: if (session->server_info->guest) { It can be verified that session->server_info is a NULL pointer. It seems that setup_ntlmssp_server_info() in smbd_smb2_spnego_auth() was not executed: 788: if (!NT_STATUS_IS_OK(status) && 789: !NT_STATUS_EQUAL(status, NT_STATUS_MORE_PROCESSING_REQUIRED)) { 790: status = setup_ntlmssp_server_info(session, status); 791: } When I comment out line 788, 789 and 791, Win7 can access the share. Please take a look. Log, core dump and pcap will be attatched. Thanks, zn
Created attachment 5886 [details] smbd log
Created attachment 5887 [details] smbd core dump (zipped)
Created attachment 5888 [details] wireshark pcap file
Created attachment 5896 [details] Fix that went into master and v3-6-test.
Jeremy, is this an issue in 3.5 as well ?
No, this code went into the tree post 3.5.x. Jeremy.
Thanks Jeremy.