Configure Winbind and PAM for authentication
The first step is to get the Linux box to treat Windows ADS accounts as local accounts — i.e. people can log into the Linux box using their Windows ADS usernames and passwords.
This is quite easily done using Fedora Core 4, and is described in this article. The article actually describes the steps for Fedora Core 2 (Fedora 3 Beta), but the steps are even simpler and less error-prone for Fedora Core 4.
In Fedora Core 4, using the KDE Desktop, you can simply use these steps:
System Settings->Authentication->Authentication->Enable Winbind Support->Configure Winbind
Type in the appropriate values for your Domain, Domain Controller, and ADS Realm, and click "Join Domain"
If you don't have KDE, you can follow the manual steps - using authconfig — as discussed in the article referred to above. There is another excellent step-by-step guide here.
Once Winbind is configured, you should edit your smb.conf file (located in /etc/samba/smb.conf in my distribution — YMMV), and check or insert the following:
template homedir = /home/%D/%U winbind separator = '\' security = ads winbind use default domain = yes winbind enum users = yes winbind enum groups = yes winbind trusted domains only = no workgroup = SOMEDOMAIN realm = SOMEDOMAIN.EXAMPLE.COM password server = ADSCONTROLLER.SOMEDOMAIN.EXAMPLE.COM obey pam restrictions = yes
Don't forget to create the folder
/home/SOMEDOMAIN
as it is not automatically created, and although your users will be able to log into your Linux box, they will have no home directories.
The next step is to ensure that home directories are automatically created when your Windows users log in to your Linux box. You do this by including the pam module mkhomedir.so in two PAM configuration files located under /etc/pam.d — login and gdm
Simply add the line
session required pam_mkhomedir.so skel=/etc/skel/ umask=0077
at the end of each of those two files.
Warning!! Make sure you back up your PAM configuration files before you change anything!!
At this point, your users should be able to access your Linux box using their ADS credentials.


