Configure Samba to use domain accounts for authentication

ht‮‬tps://www.lautturi.com
Configure Samba to use domain accounts for authentication

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.

  1. Join the Samba server to the domain by running the following command:
net ads join -U Administrator

Replace Administrator with a domain user that has permission to join the server to the domain.

  1. Edit the /etc/samba/smb.conf file and set the security option to ads:
security = ads
  1. Set the realm option to the fully qualified domain name of the domain:
realm = EXAMPLE.COM
  1. Set the workgroup option to the short name of the domain:
workgroup = EXAMPLE
  1. Restart the Samba service to apply the changes:
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.

Created Time:2017-10-16 14:38:42  Author:lautturi