To configure Samba to use domain accounts for authentication, you will need to set up Samba as a member of the domain and modify the Samba configuration to use domain authentication.
net ads join -U Administrator
Replace Administrator
with a domain user that has permission to join the server to the domain.
/etc/samba/smb.conf
file and set the security
option to ads
:security = ads
realm
option to the fully qualified domain name of the domain:realm = EXAMPLE.COM
workgroup
option to the short name of the domain:workgroup = EXAMPLE
systemctl restart smb
After completing these steps, Samba should be configured to use domain accounts for authentication. Users should be able to log in to the Samba server using their domain credentials.
Keep in mind that you may also need to configure permissions on the shared folders to allow access to specific users or groups. This can be done using the valid users
, invalid users
, and force user
options in the Samba configuration.