On 1/25/2014 1:26 PM, own3dbydsquared wrote:
>
> venzkep;2618913 Wrote:
>> The firewall has “Samba Server”, “Netbios Server” and “Samba Client” as
>> allowed services.
> Yup I have both Samba server and client as allowed services. There is no
> Netbios server option.
Well you should have the netbios server (nmb) started and allowed.
>
> venzkep;2618913 Wrote:
>> If authentication is still a problem for you, add this parameter to
>> /etc/samba/smb.conf
>>>
> Code:
> --------------------
> > >
> > log level = 0 auth:3
> >
> --------------------
>>>
>> Restart smbd and then check /var/log/samba/log.smbd to see why your
>> user is not being authenticated.
>>
> Ok I added that line and here is the output with my smbpasswd -a created
> user which has to same username as my linux user but different password.
> (couldnt create with the same)
What error message do you get when you try to make them the same? In any event the password you submit to the Samba4
server is the one created with smbpasswd.
>
> Code:
> --------------------
> [2014/01/25 14:06:36.147885, 3] …/source3/auth/auth.c:177(auth_check_ntlm_password)
> check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[DEVBOOK] with the new password interface
> [2014/01/25 14:06:36.148089, 3] …/source3/auth/auth.c:180(auth_check_ntlm_password)
> check_ntlm_password: mapped user is: [WORKGROUP][anonymous]@[DEVBOOK]
> [2014/01/25 14:06:36.148330, 3] …/source3/auth/check_samsec.c:399(check_sam_security)
> check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
> [2014/01/25 14:06:36.148464, 3] …/source3/auth/auth_winbind.c:60(check_winbind_security)
> check_winbind_security: Not using winbind, requested domain [WORKGROUP] was for this SAM.
> [2014/01/25 14:06:36.148556, 2] …/source3/auth/auth.c:288(auth_check_ntlm_password)
> check_ntlm_password: Authentication for user [anonymous] → [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
> [2014/01/25 14:06:36.148681, 3] …/source3/auth/auth_util.c:1593(do_map_to_guest_server_info)
> No such user anonymous [WORKGROUP] - using guest account
> [2014/01/25 14:06:37.403671, 3] …/source3/auth/auth.c:177(auth_check_ntlm_password)
> check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[DEVBOOK] with the new password interface
> [2014/01/25 14:06:37.403831, 3] …/source3/auth/auth.c:180(auth_check_ntlm_password)
> check_ntlm_password: mapped user is: [WORKGROUP][anonymous]@[DEVBOOK]
> [2014/01/25 14:06:37.403954, 3] …/source3/auth/check_samsec.c:399(check_sam_security)
> check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
> [2014/01/25 14:06:37.404030, 3] …/source3/auth/auth_winbind.c:60(check_winbind_security)
> check_winbind_security: Not using winbind, requested domain [WORKGROUP] was for this SAM.
> [2014/01/25 14:06:37.404085, 2] …/source3/auth/auth.c:288(auth_check_ntlm_password)
> check_ntlm_password: Authentication for user [anonymous] → [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
> [2014/01/25 14:06:37.404148, 3] …/source3/auth/auth_util.c:1593(do_map_to_guest_server_info)
> No such user anonymous [WORKGROUP] - using guest account
> [2014/01/25 14:06:41.519280, 3] …/source3/auth/auth.c:177(auth_check_ntlm_password)
> check_ntlm_password: Checking password for unmapped user [WORKGROUP][linux_user]@[DEVBOOK] with the new password interface
> [2014/01/25 14:06:41.519433, 3] …/source3/auth/auth.c:180(auth_check_ntlm_password)
> check_ntlm_password: mapped user is: [WORKGROUP][linux_user]@[DEVBOOK]
> [2014/01/25 14:06:41.520513, 3] …/source3/auth/auth.c:226(auth_check_ntlm_password)
> check_ntlm_password: sam authentication for user [linux_user] succeeded
> [2014/01/25 14:06:41.520635, 2] …/source3/auth/auth.c:278(auth_check_ntlm_password)
> check_ntlm_password: authentication for user [linux_user] → [linux_user] → [linux_user] succeeded
> --------------------
>
>
> So it succedded yet when I hit enter it stills prompts me for a username
> and password…
>
> Now when I use my linux username and password here’s the output.
>
> Code:
> --------------------
> [2014/01/25 14:17:51.270453, 3] …/source3/auth/auth.c:177(auth_check_ntlm_password)
> check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[DEVBOOK] with the new password interface
> [2014/01/25 14:17:51.270577, 3] …/source3/auth/auth.c:180(auth_check_ntlm_password)
> check_ntlm_password: mapped user is: [WORKGROUP][anonymous]@[DEVBOOK]
> [2014/01/25 14:17:51.270691, 3] …/source3/auth/check_samsec.c:399(check_sam_security)
> check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
> [2014/01/25 14:17:51.270750, 3] …/source3/auth/auth_winbind.c:60(check_winbind_security)
> check_winbind_security: Not using winbind, requested domain [WORKGROUP] was for this SAM.
> [2014/01/25 14:17:51.270794, 2] …/source3/auth/auth.c:288(auth_check_ntlm_password)
> check_ntlm_password: Authentication for user [anonymous] → [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
> [2014/01/25 14:17:51.270869, 3] …/source3/auth/auth_util.c:1593(do_map_to_guest_server_info)
> No such user anonymous [WORKGROUP] - using guest account
> [2014/01/25 14:17:53.392674, 3] …/source3/auth/auth.c:177(auth_check_ntlm_password)
> check_ntlm_password: Checking password for unmapped user [WORKGROUP][anonymous]@[DEVBOOK] with the new password interface
> [2014/01/25 14:17:53.392809, 3] …/source3/auth/auth.c:180(auth_check_ntlm_password)
> check_ntlm_password: mapped user is: [WORKGROUP][anonymous]@[DEVBOOK]
> [2014/01/25 14:17:53.392957, 3] …/source3/auth/check_samsec.c:399(check_sam_security)
> check_sam_security: Couldn’t find user ‘anonymous’ in passdb.
> [2014/01/25 14:17:53.393036, 3] …/source3/auth/auth_winbind.c:60(check_winbind_security)
> check_winbind_security: Not using winbind, requested domain [WORKGROUP] was for this SAM.
> [2014/01/25 14:17:53.393083, 2] …/source3/auth/auth.c:288(auth_check_ntlm_password)
> check_ntlm_password: Authentication for user [anonymous] → [anonymous] FAILED with error NT_STATUS_NO_SUCH_USER
> [2014/01/25 14:17:53.393143, 3] …/source3/auth/auth_util.c:1593(do_map_to_guest_server_info)
> No such user anonymous [WORKGROUP] - using guest account
> [2014/01/25 14:17:57.889053, 3] …/source3/auth/auth.c:177(auth_check_ntlm_password)
> check_ntlm_password: Checking password for unmapped user [WORKGROUP][linux_user]@[DEVBOOK] with the new password interface
> [2014/01/25 14:17:57.889171, 3] …/source3/auth/auth.c:180(auth_check_ntlm_password)
> check_ntlm_password: mapped user is: [WORKGROUP][linux_user]@[DEVBOOK]
> [2014/01/25 14:17:57.890003, 3] …/source3/auth/auth_winbind.c:60(check_winbind_security)
> check_winbind_security: Not using winbind, requested domain [WORKGROUP] was for this SAM.
> [2014/01/25 14:17:57.890064, 2] …/source3/auth/auth.c:288(auth_check_ntlm_password)
> check_ntlm_password: Authentication for user [linux_user] → [linux_user] FAILED with error NT_STATUS_WRONG_PASSWORD
> [2014/01/25 14:17:57.890828, 3] …/source3/auth/auth.c:177(auth_check_ntlm_password)
> check_ntlm_password: Checking password for unmapped user ]]@] with the new password interface
> [2014/01/25 14:17:57.890889, 3] …/source3/auth/auth.c:180(auth_check_ntlm_password)
> check_ntlm_password: mapped user is: [WORKGROUP]]@]
> [2014/01/25 14:17:57.890960, 3] …/source3/auth/auth.c:226(auth_check_ntlm_password)
> check_ntlm_password: guest authentication for user ] succeeded
> --------------------
>
>
> So this one also succeed but stills prompts me after I entered correct
> authentication. :\ Very strange.
>
>
What OS is being run on your clients? Start nmb and allow it through your firewall. Does your smb.conf conform to what
is outlined in Swerdna’s article? Perhaps you need to post your current /etc/samba/smb.conf.
–
P.V.
“We’re all in this together, I’m pulling for you” Red Green