Но в офисе много ноутов с хомячной виндой. Что бы пользователи не вводили постоянно пароли, решил прикрутить авторизацию к самбе по ip.
в smb.conf добавил
Код: Выделить всё
username map script = /home/scripts/samba_auth %I
Код: Выделить всё
#!/bin/sh
case "$1" in
10.168.200.4)
USER="user"
;;
esac
echo $USER
Код: Выделить всё
[2011/07/10 11:09:39, 3] libsmb/ntlmssp.c:745(ntlmssp_server_auth)
Got user=[Юлинька] domain=[JULY] workstation=[JULY] len1=24 len2=24
а вот july.юлинька.log меня не порадовал
Код: Выделить всё
[2011/07/10 11:20:01, 3] smbd/map_username.c:125(map_username)
Mapped user Юлинька to user
[2011/07/10 11:20:01, 3] auth/auth.c:222(check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [JULY]\[Юлинька]@[JULY] with the new password interface
[2011/07/10 11:20:01, 3] auth/auth.c:225(check_ntlm_password)
check_ntlm_password: mapped user is: [BACKUP]\[user]@[JULY]
[2011/07/10 11:20:01, 3] smbd/sec_ctx.c:210(push_sec_ctx)
push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2011/07/10 11:20:01, 3] smbd/uid.c:428(push_conn_ctx)
push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2011/07/10 11:20:01, 3] smbd/sec_ctx.c:310(set_sec_ctx)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2011/07/10 11:20:01, 3] smbd/sec_ctx.c:418(pop_sec_ctx)
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/07/10 11:20:01, 3] auth/auth_sam.c:350(check_sam_security)
check_sam_security: Couldn't find user 'user' in passdb.
[2011/07/10 11:20:01, 3] auth/auth_winbind.c:54(check_winbind_security)
check_winbind_security: Not using winbind, requested domain [BACKUP] was for this SAM.
[2011/07/10 11:20:01, 2] auth/auth.c:320(check_ntlm_password)
check_ntlm_password: Authentication for user [Юлинька] -> [user] FAILED with error NT_STATUS_NO_SUCH_USER
[2011/07/10 11:20:01, 3] smbd/error.c:60(error_packet_set)
error packet at smbd/sesssetup.c(122) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
[2011/07/10 11:20:01, 3] smbd/map_username.c:125(map_username)