Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-27-2014, 01:02 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 23

Rep: Reputation: Disabled
Question multiple auth methods in pam.d/sshd?


Im trying to get PAM to allow for multiple methods of authentication. I want to have an RSA SecurID PAM module authenticate one group of users, Active Directory to authenticate a second, separate group of users, and finally, a local /etc/passwd to authenticate a third group of users. One of these groups has SecurID tokens and Active Directory accounts. This group should only be able to log in to the Linux server with their SecurID token and not their Active Directory credentials. The other groups should have only the Active Directory authentication requested.

I've tried stacking PAM modules in different orders and different controls, and I've worked on the system-auth-ac file to try and deny the Active Directory to those users by using pam_listfile in the system-auth-ac file. None of the variations have brought any joy.

I'm racking my brains on this one - seems there should be some way to wrangle a particular authentication method for any arbitrary group, but the answer eludes me.

Has anyone tried something this involved recently?

Thanks for any tips or guidance on this!

Old 07-01-2014, 05:26 AM   #2
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
We can set authentication order in a way so that if one auth method fail it try for next one.



active directory, login, pam, pamauth, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sshd using pam dazdaz Linux - Security 1 03-21-2013 01:22 PM
Want to use pam-config for sshd and some other pingu Linux - Security 2 04-05-2012 02:53 PM
questions about encryption/auth methods fil.krohnengold Linux - Wireless Networking 5 01-12-2007 03:47 PM
syslog-ng setup (for sshd and auth) m15a4 Linux - Security 12 02-17-2006 01:53 AM
SSHD: No further authentication methods. URGENT ciaoci Linux - Security 4 10-08-2005 11:31 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration