Singh, Hartej
2018-Dec-27 22:24 UTC
[Samba] Authenticating Samba Share Using Windows Credentials
Hello: I have Samba 4.8.3 server running on RHEL 7.6 and I have configured smb.conf with smbpasswd as the backend passdb. I have included my smb.conf below this message. From Windows 10, I can map to the //server/homes by entering the credentials for the Samba users (stored in smbpasswd), but since I am using the "username map = /etc/samba/smbusers" Global directive in my smb.conf, I am expecting to be authenticated for the //server/homes mapping using my Windows credentials instead. That is not working for me. Also, the Windows credentials authentication works on RHEL 6.9 with Samba 3.X. Any help is much appreciated. Thanks, Hartej Here is smb.conf: # Global parameters [global] workgroup = GALCO netbios name = THETA security = user null passwords = Yes max log size = 50 username map = /etc/samba/smbusers smb passwd file = /etc/samba/smbpasswd passdb backend = smbpasswd unix password sync = yes passwd program = /usr/bin/passwd create mask = 0777 local master = No domain master = No hosts allow = 172.16. 127. 10. case sensitive = yes log file = /tmp/samba.log log level = 3 [printers] comment = All Printers path = /var/spool/samba browseable = no public = yes guest ok = yes writable = no printable = yes #printer admin = root [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes guest ok = no read only = no write list = root Administrator [homes] comment = Home Directories read only = No browseable = Yes [users] comment = Alpha users valid users = @it path = /home read only = no
Rowland Penny
2018-Dec-28 08:55 UTC
[Samba] Authenticating Samba Share Using Windows Credentials
On Thu, 27 Dec 2018 22:24:53 +0000 "Singh, Hartej via samba" <samba at lists.samba.org> wrote:> Hello: > > I have Samba 4.8.3 server running on RHEL 7.6 and I have configured > smb.conf with smbpasswd as the backend passdb.Do not use the 'smbpasswd' passdb, it is deprecated, use the default 'tdbsam' instead.> > I have included my smb.conf below this message. From Windows 10, I > can map to the //server/homes by entering the credentials for the > Samba users (stored in smbpasswd), but since I am using the "username > map = /etc/samba/smbusers" Global directive in my smb.conf, I am > expecting to be authenticated for the //server/homes mapping using my > Windows credentials instead. That is not working for me.What is in '/etc/samba/smbusers' ? You do not really need it on a standalone server, you just need to create your Windows users on the standalone servers as Unix & Samba users.> > Also, the Windows credentials authentication works on RHEL 6.9 with > Samba 3.X.Samba 3.x.x is EOL, you should not be using these versions. Rowland
Seemingly Similar Threads
- Authenticating AD users and Local users
- cached credentials local login -- notebook domain members
- Using Unix/LDAP Log in Credentials for Security = User Share Authentication
- ADS security mode - authenticating non-domain Linux users
- AD Domain member not authenticating