Bootstrap FreeKB - Samba (File Server) - Integrate a Samba file share with an Active Directory Domain Controller
Samba (File Server) - Integrate a Samba file share with an Active Directory Domain Controller

Updated:   |  Samba (File Server) articles

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.

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


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