Created attachment 8861 [details] wireshark trace file We have installed new samba 3.6.9 on our new rhel6 server, and it is very slow some time. Using wireshark, we found out every time the windows client send NTLMSSP_NEGOTIATE, the samba server responses NTLMSSP_CHALLENGE 10 sec later. Hope anyone can help.
Here is the level 3 log of the issure: [2013/05/08 09:55:03.238631, 3] smbd/sesssetup.c:1065(reply_sesssetup_and_X_spnego) Doing spnego session setup [2013/05/08 09:55:03.238663, 3] smbd/sesssetup.c:1107(reply_sesssetup_and_X_spnego) NativeOS=[] NativeLanMan=[] PrimaryDomain=[] [2013/05/08 09:55:03.238713, 3] smbd/sesssetup.c:660(reply_spnego_negotiate) reply_spnego_negotiate: Got secblob of size 40 [2013/05/08 09:55:08.256655, 3] ../lib/util/util_net.c:70(interpret_string_addr_internal) interpret_string_addr_internal: getaddrinfo failed for name VSS [Name or service not known] [2013/05/08 09:55:08.282949, 3] lib/util_sock.c:1434(get_mydnsfullname) get_mydnsfullname: getaddrinfo failed for name VSS [Unknown error] [2013/05/08 09:55:13.300384, 3] ../lib/util/util_net.c:70(interpret_string_addr_internal) interpret_string_addr_internal: getaddrinfo failed for name VSS [Name or service not known] [2013/05/08 09:55:13.320828, 3] lib/util_sock.c:1434(get_mydnsfullname) get_mydnsfullname: getaddrinfo failed for name VSS [Unknown error] [2013/05/08 09:55:13.320948, 3] ../libcli/auth/ntlmssp.c:34(debug_ntlmssp_flags) Got NTLMSSP neg_flags=0xe2088297 [2013/05/08 09:55:13.322018, 3] smbd/process.c:1662(process_smb) Transaction 2 of length 438 (0 toread) [2013/05/08 09:55:13.322154, 3] smbd/process.c:1467(switch_message) switch message SMBsesssetupX (pid 31535) conn 0x0 [2013/05/08 09:55:13.322214, 3] smbd/sesssetup.c:1333(reply_sesssetup_and_X) wct=12 flg2=0xc807 [2013/05/08 09:55:13.322257, 2] smbd/sesssetup.c:1279(setup_new_vc_session) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2013/05/08 09:55:13.322296, 3] smbd/sesssetup.c:1065(reply_sesssetup_and_X_spnego) Doing spnego session setup
looks like you got a hostname resolution problem... Is your DNS responding well, and do you have your own hostname in /etc/hosts?
I added the server name (which is defined in /etc/sysconfig/network) in /etc/hosts, and it works. This issue is considered solved. Thanks!