How to integrate a Samba file share with an Active Directory Domain Controller

Home > Search > How-to
  by

To integrate a Samba file share with a Windows Active Directory Domain Controller, Samba will need to be configured to use Kerberos, because an Active Directory Domain Controller uses Kerberos for authentication. Follow the instructions in the article on how to install and configure Kerberos server on Linux.

When connecting to the share using Windows, there will be a prompt to enter a username and password. By setting up Kerberos, there will be no need to provide a password. However, you will still need to provide a username. Follow the instructions in the article on how to create a new user account in Linux.

To integrate a Samba file share with an Active Directory Domain Controller, adjust your /etc/samba/smb.conf file to have the following configurations

[global]

# The NetBIOS name of the domain controller
Realm = The realm name in your /etc/krb5.conf file

# Must be "ADS"
security = ADS

# The realm name in your /etc/krb5.conf file
realm = your.domain.com

# The name in your /etc/krb5.conf file
password server = your.domain.com

 

Restart Samba, and ensure Samba is active and running.

[root@server1 ~]# service smb restart
[root@server1 ~]# service smb status

 

Join the Linux machine to the Active Directory domain.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments