Let's use the product formerly known as Likewise as an example. I can very easily install this on a Linux machine and join it to an Active Directory domain.
I can also use an RSA PAM module so that users are forced to authenticate with a 2-factor hardware token PIN and passcode, using a username that is known to the RSA authenticating server.
Can I use these two together? In other words, I guess what I'm asking is can I use two PAM modules at the same time? (I'm not a Linux guy so take it easy on me please.)
With Linux PAM you can chain authentication modules. Just set all the necessary PAM-module you want to be checked to
required
in the appropriate configuration file.From the documentation:
So if all authentication methodes must be successful, use
requisite
. However, if the first of two auth-methodes fails, it will terminate immediately.If you want to hide the fact that some certain auth-methode failed, use
required
. Even if one module fails, it will continue to check other methodes, just to fail at the end.If you only need one of those methodes to succeed (means: many may fail, only one successful auth is sufficient), use
sufficient
.Refer to Pam Chain Policies for more details.