Samba - Rejecting connection request
Posted: 04 Nov 2022, 16:12
Hoping that the community can help. I've tried to resolve this via Terramaster support (unsuccessfully). The last communication with support was "hi, our engineers are in the meeting currently, will e-mail you the feedback as soon as we have. Thanks for your patience in advance." That was on Oct 12 and.... Nothing since.
Device = F5-221
Version = 5.0.176-00227
Samba version = 4.15.6
The problem
When trying to map network drive From any device e.g.: Windows PC, Android Phone, the connection fails due to Samba rejecting the user credentials.
The user is an admin user on the NAS and is the one that I use to successfully log into it via the web browser and connect to it for FTP or SSH access.
Apart from being unable to Samba rejecting connection credentials, the NAS is functioning correctly.
Things I have tried:
1. Restart the NAS - no change
2. Restart Samba - no change
3. Reinitialised Samba (support suggestion) using script
"cp -rf /etc.default/samba/* /etc/samba
rm /etc/tos/config/smb.json
/etc/init.d/samba restart"
Didn't help.
4. Compared the Samba config files between the offending NAS and my Back-up NAS (Note: samba fine on the back-up NAS)
I don't see any any differences and the relevant user is registered in the smbp file.
5. I've also checked that my router isn't blocking the connection requests.
Below are the most recent lines in the log.smbd file that confirms that samba is rejecting the connection request.
----------------------
[2022/10/31 00:09:20.945247, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session close failed : Authentication failure
[2022/11/04 18:06:02.357426, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session setup failed : Authentication failure
[2022/11/04 18:06:02.368352, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session close failed : Authentication failure
[2022/11/04 18:15:38.907970, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session setup failed : Authentication failure
[2022/11/04 18:15:38.918631, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session close failed : Authentication failure
----------------------
I'm at a loss as to what to try next/check next. Any help from the community would be much appreciated.
Device = F5-221
Version = 5.0.176-00227
Samba version = 4.15.6
The problem
When trying to map network drive From any device e.g.: Windows PC, Android Phone, the connection fails due to Samba rejecting the user credentials.
The user is an admin user on the NAS and is the one that I use to successfully log into it via the web browser and connect to it for FTP or SSH access.
Apart from being unable to Samba rejecting connection credentials, the NAS is functioning correctly.
Things I have tried:
1. Restart the NAS - no change
2. Restart Samba - no change
3. Reinitialised Samba (support suggestion) using script
"cp -rf /etc.default/samba/* /etc/samba
rm /etc/tos/config/smb.json
/etc/init.d/samba restart"
Didn't help.
4. Compared the Samba config files between the offending NAS and my Back-up NAS (Note: samba fine on the back-up NAS)
I don't see any any differences and the relevant user is registered in the smbp file.
5. I've also checked that my router isn't blocking the connection requests.
Below are the most recent lines in the log.smbd file that confirms that samba is rejecting the connection request.
----------------------
[2022/10/31 00:09:20.945247, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session close failed : Authentication failure
[2022/11/04 18:06:02.357426, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session setup failed : Authentication failure
[2022/11/04 18:06:02.368352, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session close failed : Authentication failure
[2022/11/04 18:15:38.907970, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session setup failed : Authentication failure
[2022/11/04 18:15:38.918631, 0] ../../source3/auth/pampass.c:90(smb_pam_error_handler)
smb_pam_error_handler: PAM: session close failed : Authentication failure
----------------------
I'm at a loss as to what to try next/check next. Any help from the community would be much appreciated.