BSDPORTAL.RU
http://www.bsdportal.ru/

Samba, подключение сетевого диска из другого домена
http://www.bsdportal.ru/viewtopic.php?f=13&t=29243
Страница 1 из 1

Автор:  AndreyA [ Пн 13 сен, 2021 4:15 pm ]
Заголовок сообщения:  Samba, подключение сетевого диска из другого домена

Сделал шару на самбе, сервер не в домене. Конфиг обычный, если клиент не в домене, то подключается нормально. А если комп находится в домене(в моем случае- домен BUH), то приходится перед именем пользователя писать то, что находится в строке server string в конфиге самбы.
Если подключаться из командной строки через net use - там все нормально.

Ошибка
Got user=[ivanov_D_I] domain=[BUH] workstation=[B106PC02] len1=24 len2=266
[2021/09/13 12:05:32.623527, 3] ../../source3/auth/auth.c:201(auth_check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [BUH]\[ivanov_D_I]@[B106PC02] with the new password interface
[2021/09/13 12:05:32.623534, 3] ../../source3/auth/auth.c:204(auth_check_ntlm_password)
check_ntlm_password: mapped user is: [BUH]\[ivanov_D_I]@[B106PC02]
[2021/09/13 12:05:32.623894, 3] ../../source3/passdb/lookup_sid.c:1685(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for ivanov_D_I
[2021/09/13 12:05:32.624022, 3] ../../libcli/auth/ntlm_check.c:446(ntlm_password_check)
ntlm_password_check: NTLMv2 password check failed
[2021/09/13 12:05:32.624029, 3] ../../libcli/auth/ntlm_check.c:493(ntlm_password_check)
ntlm_password_check: Lanman passwords NOT PERMITTED for user ivanov_D_I
[2021/09/13 12:05:32.624077, 3] ../../libcli/auth/ntlm_check.c:637(ntlm_password_check)
ntlm_password_check: LM password, NT MD4 password in LM field and LMv2 failed for user ivanov_D_I
[2021/09/13 12:05:32.624200, 2] ../../source3/auth/auth.c:347(auth_check_ntlm_password)
check_ntlm_password: Authentication for user [ivanov_D_I] -> [ivanov_D_I] FAILED with error NT_STATUS_WRONG_PASSWORD, authoritative=1
[2021/09/13 12:05:32.624262, 2] ../../auth/auth_log.c:653(log_authentication_event_human_readable)
Auth: [SMB2,(null)] user [BUH]\[ivanov_D_I] at [Mon, 13 Sep 2021 12:05:32.624223 +03] with [NTLMv2] status [NT_STATUS_WRONG_PASSWORD] workst
{"timestamp": "2021-09-13T12:05:32.624423+0300", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId"
[2021/09/13 12:05:32.624526, 3] ../../auth/gensec/spnego.c:1445(gensec_spnego_server_negTokenTarg_step)
gensec_spnego_server_negTokenTarg_step: SPNEGO(ntlmssp) login failed: NT_STATUS_WRONG_PASSWORD
[2021/09/13 12:05:32.624547, 3] ../../source3/smbd/smb2_server.c:3863(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_LOGON_FAILURE] || at ../../source3/smbd/smb2_sesssetup.c:146

Конфиг
[global]
workgroup = aga.local
server string = bf
security = user
dos charset = CP866
netbios name = bf
log level = 3
log file = /var/log/samba4/log.%m
max log size = 5000
local master = no
domain master = no
socket options = TCP_NODELAY
os level = 20
map to guest = Bad user
ntlm auth = yes
client ntlmv2 auth = yes
server min protocol = NT1
server max protocol = SMB2_10
client min protocol = NT1

[f]
comment = pm
path = /smb
security=user
public = yes
guest ok = no
writable = yes
read only = no
create mask = 0777
directory mask = 0777
; browseable = yes
force create mode = 0777
force directory mode = 0777

Страница 1 из 1 Часовой пояс: UTC + 4 часа
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/