This post is to show you how to use Windows ADS accounts to login to your Linux server instead of manually making seperate Linux local accounts. The reason I did this is because some of our clients wanted to use sftp and the easiest way to manage all the different accounts for each client is creating OU's in Active Directory Services in Windows. This document will work with Windows 2000 or 2003 ADS.
Winbind is integrated with Samba and will require you to configure Samba and PAM for this operation to work succesfully. Lets get started :)
Step 1:
Lets backup your smb.conf file incase you make a mistake you can start over
Code:
cp /etc/samba/smb.conf /etc/samba/smb.bak
Step 2:
Now its time to edit your smb.conf file
Code:
vi /etc/samba/smb.conf
Step 3:
Now enter in the following below. You can delete the contents of your orginal smb.conf file as this will replace everything in there.
You will have to change the following lines to your configuration:
workgroup =