Добрый день.
Есть Centos 8, Samba 4.10.4.
Пользователи локальные, домена нет.
smb.conf:
[global]
netbios name = ncloud
workgroup = WORKGROUP
security = user
server string = %h server (Samba %v)
map to guest = Bad Password
printcap name = /dev/null
passdb backend = tdbsam
load printers = no
show add printer wizard = no
disable spoolss = yes
os level = 60
recylce:excludedir = tmp temp cache
recycle:exclude = *.tmp *.temp *.o *.obj ~$* *.~?? *.log *.trace
recycle:versions = Yes
recycle:touch = Yes
recycle:keeptree = Yes
recycle:repository = /data/recycle/%U
vfs objects = recycle
log level = 1 auth:10 winbind:5 passdb:4
max log size = 20480
[common]
public = no
writeable = yes
browseable = yes
read only = no
guest ok = no
comment = Public Folder
valid users = @stuff
force create mode = 0777
force directory mode = 0777
path = /data/samba/public
create mask = 0777
directory mask = 0777
При подключении папки из Windows 10 все прекрасно подключается, пользователь нормально автроризуется в самбе.
[2020/05/02 10:53:02.071084, 5, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth_util.c:123(make_user_info_map)
Mapping user [MicrosoftAccount]\[admin] from workstation [KOZHEVNIKOV-HOM]
[2020/05/02 10:53:02.071114, 5, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/user_info.c:64(make_user_info)
attempting to make a user_info for admin (admin)
[2020/05/02 10:53:02.071124, 5, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/user_info.c:72(make_user_info)
making strings for admin's user_info struct
[2020/05/02 10:53:02.071138, 5, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/user_info.c:117(make_user_info)
making blobs for admin's user_info struct
[2020/05/02 10:53:02.071148, 10, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/user_info.c:163(make_user_info)
made a user_info for admin (admin)
[2020/05/02 10:53:02.071157, 3, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:189(auth_check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [MicrosoftAccount]\[admin]@[KOZHEVNIKOV-HOM] with the new password interface
[2020/05/02 10:53:02.071214, 3, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:192(auth_check_ntlm_password)
check_ntlm_password: mapped user is: [MicrosoftAccount]\[admin]@[KOZHEVNIKOV-HOM]
[2020/05/02 10:53:02.071228, 10, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:202(auth_check_ntlm_password)
check_ntlm_password: auth_context challenge created by random
[2020/05/02 10:53:02.071238, 10, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:204(auth_check_ntlm_password)
challenge is:
[2020/05/02 10:53:02.071248, 10, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth_builtin.c:41(check_anonymous_security)
Check auth for: [admin]
[2020/05/02 10:53:02.071258, 10, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:237(auth_check_ntlm_password)
auth_check_ntlm_password: anonymous had nothing to say
[2020/05/02 10:53:02.072873, 4, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/check_samsec.c:183(sam_account_ok)
sam_account_ok: Checking SMB password for user admin
[2020/05/02 10:53:02.072947, 5, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/check_samsec.c:165(logon_hours_ok)
logon_hours_ok: user admin allowed to logon at this time (Sat May 2 02:53:02 2020
)
[2020/05/02 10:53:02.076357, 5, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/server_info_sam.c:122(make_server_info_sam)
make_server_info_sam: made server info for user admin -> admin
[2020/05/02 10:53:02.076424, 3, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:256(auth_check_ntlm_password)
auth_check_ntlm_password: sam_ignoredomain authentication for user [admin] succeeded
[2020/05/02 10:53:02.076452, 5, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:283(auth_check_ntlm_password)
check_ntlm_password: PAM Account for user [admin] succeeded
[2020/05/02 10:53:02.076485, 2, pid=26878, effective(0, 0), real(0, 0), class=auth] ../../source3/auth/auth.c:316(auth_check_ntlm_password)
check_ntlm_password: authentication for user [admin] -> [admin] -> [admin] succeeded
Windows 7 ни вкакую не подключается. Самба не может авторизовать пользователя и мапит пользователя как геста.
Mapping user [EROSHEVSKAYA]\[eroshevskaya] from workstation [EROSHEVSKAYA]
attempting to make a user_info for eroshevskaya (eroshevskaya)
making strings for eroshevskaya's user_info struct
making blobs for eroshevskaya's user_info struct
made a user_info for eroshevskaya (eroshevskaya)
check_ntlm_password: Checking password for unmapped user [EROSHEVSKAYA]\[eroshevskaya]@[EROSHEVSKAYA] with the new password interface
check_ntlm_password: mapped user is: [EROSHEVSKAYA]\[eroshevskaya]@[EROSHEVSKAYA]
check_ntlm_password: auth_context challenge created by random
challenge is:
Check auth for: [eroshevskaya]
auth_check_ntlm_password: anonymous had nothing to say
auth_check_ntlm_password: sam_ignoredomain authentication for user [eroshevskaya] FAILED with error NT_STATUS_WRONG_PASSWORD, authoritative=1
check_ntlm_password: Authentication for user [eroshevskaya] -> [eroshevskaya] FAILED with error NT_STATUS_WRONG_PASSWORD, authoritative=1
Registered username eroshevskaya for guest access
ntlmssp_server_auth: Failed to create unmodified session key.
Пользователя и пароль ввожу верно. Перепробовал разные параметры конфига и настроек на семерке. Никак не могу победить. Может кто уидит в чем проблема?