Тоже долго мучился с проблемой "got NTLMSSP command 1, expected 3" и "got NTLMSSP command 3, expected 1"
Нашел решение: "http://www.mahno.su/freebsd/network/squid-ntlm-i-oshibka-avt..., но не хотелось связываться с исходниками samba.tar.gz.
Вот решение на основе samba src.rpm:
1. cd /root
yum update samba-*
yum install yum-utils rpmdevtools
2. yumdownloader --source samba
3. rpm -ivh samba-3.6.3-78.fc16.src.rpm
4. yum-builddep ~/rpmbuild/SPECS/samba.spec
5. rpmbuild -bp ~/rpmbuild/SPECS/samba.spec
6. Modif: '/root/rpmbuild/BUILD/samba-3.6.3/source3/libsmb/ntlmssp.c':
OLD:
>>if (ntlmssp_command != ntlmssp_state->expected_state) {
>> DEBUG(1, ("got NTLMSSP command %u, expected %u\n", ntlmssp_command, ntlmssp_state->expected_state));
>> return NT_STATUS_INVALID_PARAMETER;
>> }NEW:
>>if (ntlmssp_command != ntlmssp_state->expected_state) {
>> DEBUG(1, ("got NTLMSSP command %u, expected %u\n", ntlmssp_command, ntlmssp_state->expected_state));
>> return NT_STATUS_OK;
>> }
7. cd /root/rpmbuild/BUILD
tar -czvf samba-3.6.3.tar.gz samba-3.6.3/
copy: /root/rpmbuild/BUILD/samba-3.6.3.tar.gz -> /root/rpmbuild/SOURCES/samba-3.6.3.tar.gz
8. cd /root
rpmbuild -ba ~/rpmbuild/SPECS/samba.spec
8.1 if error: "mkdir: cannot create directory 'packaging/Fedora': File exists"
Modif: '/root/rpmbuild/SPECS/samba.spec':
OLD:
>># copy Red Hat specific scripts
>>mkdir packaging/Fedora
>>cp packaging/RHEL/setup/smbusers packaging/Fedora/
NEW:
>># copy Red Hat specific scripts
>>#mkdir packaging/Fedora
>>cp packaging/RHEL/setup/smbusers packaging/Fedora/
9. cd /root
save: /etc/samba/smb.conf
yum erase samba-*
10. cd /root/rpmbuild/RPMS/x86_64
yum install *.rpm
restore: /etc/samba/smb.conf
Кому-нибудь помогло?
Какие-нибудь другие решения данной проблемы у кого-нибудь есть?