[Samba] samba fails to connect to windows file share joined to domain

Rowland Penny rpenny at samba.org
Thu Dec 14 10:06:26 UTC 2023


On Wed, 13 Dec 2023 14:47:52 -0700
jacek burghardt via samba <samba at lists.samba.org> wrote:

> I setup my samba with config provided
> 
> I cant mount shares still I see
> 
>   SPNEGO login failed: The attempted logon is invalid. This is either
> due to a bad username or authentication information.
> 
> [2023/12/13 14:41:17.238710,  1]
> ../../source3/winbindd/winbindd_cm.c:870(cm_prepare_connection)
>   authenticated session setup to den-dc01.HEBE.US using HEBE\RADREC$
> failed with NT_STATUS_LOGON_FAILURE
> [2023/12/13 14:41:17.238751,  3]
> ../../source3/winbindd/winbindd_cm.c:365(cm_get_ipc_userpass)
>   cm_get_ipc_userpass: No auth-user defined
> [2023/12/13 14:41:17.238781,  3]
> ../../source3/winbindd/winbindd_cm.c:365(cm_get_ipc_userpass)
>   cm_get_ipc_userpass: No auth-user defined
> [2023/12/13 14:41:17.238910,  1]
> ../../source3/winbindd/winbindd_cm.c:1016(cm_prepare_connection)
>   Failed to prepare SMB connection to den-dc01.HEBE.US:
> NT_STATUS_LOGON_FAILURE
> [2023/12/13 14:41:17.239109,  3]
> ../../source3/winbindd/winbindd_dual_srv.c:951(_wbint_PingDc)
>   could not open handle to NETLOGON pipe: NT_STATUS_LOGON_FAILURE
> 

OK, I take it, that if you now run 'sudo net ads testjoin', it returns
'Join is OK'.
If it isn't, then you need to find out why your computer isn't joined
to the domain.

Turning to the fstab line you posted earlier:

//winnas/radio /radio cifs
credentials=/etc/samba/credentials/radiorec,vers=2.0,uid=1000,gid=1000,iocharset=utf8,sec=krb5i,nofail
0 0

It appears you are trying to use a credentials file and kerberos, you
do not use both.

To use kerberos, try it like this:

//winnas/radio /radio cifs
uid=1000,gid=1000,iocharset=utf8,sec=krb5i,nofail 0 0

To use your credentials file, try it like this:

//winnas/radio /radio cifs
credentials=/etc/samba/credentials/radiorec,uid=1000,gid=1000,iocharset=utf8,nofail
0 0

If your machine is joined to the domain and the share will still not
mount via fstab, try mounting it manually.

Rowland
 



More information about the samba mailing list