저는 Windows 7 x64 PC와 Gentoo Box(NAS 역할을 함)를 가지고 있습니다. Samba3에서 Samba4.1.6으로 마이그레이션하려고 하는데 Samba가 시작되면 연결할 수 없습니다(Samba 3에서 작동함).
[18:24:35.494397,3] ../source3/auth/auth.c:177(auth_check_ntlm_password) check_ntlm_password: Checking password for unmapped user [WindowsHost]\[WindowsUser]@[WindowsHost] with the new password interface
[18:24:35.494421,3] ../source3/auth/auth.c:180(auth_check_ntlm_password) check_ntlm_password: mapped user is: [GentooBox]\[GentooUser]@[WindowsHost]
[18:24:35.494645,3] ../source3/passdb/lookup_sid.c:1560(get_primary_group_sid) Forcing Primary Group to 'Domain Users' for GentooUser
[18:24:35.494908,3] ../source3/auth/auth.c:226(auth_check_ntlm_password) check_ntlm_password: sam authentication for user [WindowsUser] succeeded
[18:24:35.495065,2] ../source3/auth/pampass.c:577(smb_pam_account) smb_pam_account: PAM: There was an authentication error for user GentooUser
[18:24:35.495088,2] ../source3/auth/pampass.c:89(smb_pam_error_handler) smb_pam_error_handler: PAM: Account Check Failed : Authentication failure
[18:24:35.495168,0] ../source3/auth/pampass.c:797(smb_pam_accountcheck) smb_pam_accountcheck: PAM: Account Validation Failed - Rejecting User GentooUser!
[18:24:35.495240,3] ../source3/auth/auth.c:268(auth_check_ntlm_password) check_ntlm_password: PAM Account for user [GentooUser] FAILED with error NT_STATUS_WRONG_PASSWORD
[18:24:35.495269,2] ../auth/gensec/spnego.c:743(gensec_spnego_server_negTokenTarg) SPNEGO login failed: NT_STATUS_WRONG_PASSWORD
[18:24:35.495625,3] ../source3/smbd/server_exit.c:212(exit_server_common) Server exit (NT_STATUS_CONNECTION_RESET)
이해가 안 될 수도 있지만 AD, LDAP 없이 Samba를 구성하고 비밀번호 정보만 기반으로 Windows 사용자를 Linux 사용자로 수락하는 것이 여전히 가능합니까?
--
내 구성은 다음과 같습니다.
[global]
workgroup = WHITE_SPACE
server string = WHITE SPACE
map to guest = Bad User
obey pam restrictions = Yes
guest account = smbconsu
username map = /etc/samba/users.map
log file = /var/log/samba/samba.log
max log size = 1000
load printers = No
dns proxy = No
idmap config * : backend = tdb
hosts allow = 192.168.113., 127.0.0.1
hosts deny = ALL
log level=3
[animes]
comment = Animes Repository
path = /mnt/raid5/samba/animes
valid users = +smbshare
write list = GentooUser
guest ok = Yes
case sensitive = No
및 users.map:
GentooUser = "WindowsHost/WindowsUser" "WindowsUser"
smbconsu = guest pcguest smbguest