Linux Samba Configuration:

Debian Samba server connecting to Active directory

1. Installing software

The first thing that you need to do is to install the required packages.

Windows server information

In this configuration I used the following windows info.

Domain name: is414

Fully qualified domain name: is414.com

Window domain controller: rkb-server

Kerberos setup

Open /etc/krb5.conf

add the following lines to the krb.conf file.

After that has been completed do the following:

Verify that it worked by using the following command:

Samba Setup

Open the samba configuration file /etc/samba/smb.conf and add the following:

Creating a share in /etc/samba/smb.conf. Replace ?WindowsShare with any name you want. first create the folder:

Add the following in the /etc/samba/smb.conf

Test your configuration with the following command:

Now you must restart the samba deamon.

Winbind configuration

Stop the winbind deamon.

edit the couple of lines of the /etc/nsswitch.conf file.

Joining the Domain

start the samba and winbind deamons

Join the domain with the following command

Test winbind with the following commands

The wbinfo – u should list the AD users

The wbinfo – g should list the AD groups

All that is left is to test the connection from the server to verify that the share is working.