无法访问gentoo box上的samba4.1共享

无法访问gentoo box上的samba4.1共享

我有一台 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

相关内容