How to determine the auth method used?

Nathan Yocom nate at yocom.org
Wed Sep 21 14:51:04 UTC 2005


Christi Garvin wrote:

>I understand the goal of PAM is to obscure this from the application developer.... however our application needs to perform one or more actions based on what type of auth method was used to grant the user access. Is there some other way to do this, other than by determining the auth method?
>  
>
You could configure individual stacks for each auth method (LDAP,
RADIUS, etc) and change your application's pam aware section to try each
in succession (instead of just "login" or your default stack) - this
would allow you to know which succeeds. 

Nate




More information about the Pam-list mailing list