PAM Module Question
Hi guys,
Looking for a bit of guidance trying to implement something. My goal is this: Allow a user to connect to a server via SSH with any login name or password without checking to see if that account exists on that server. Their account would be captured by a universal account say, 'generic_user', and then they would be directed to one of my python scripts with the username and password they supplied for initial login. At this point my script would capture their SSHD process ID and allow/deny their existence based upon a MySQL/Subscription check. The part I'm having trouble with is with PAM and allowing the user to login with any credentials and be successfully authenticated under the generic account. Beyond that, everything is great. Any help would be appreciated! |
I don't think this is (conceptually) the correct approach. What would be best is a PAM auth module to do the MySQL/subscription check at the outset, right? IOW, do you really want invalid users to get generic credentials and make it all the way to your python script for the purpose of authentication?
|
Quote:
|
All times are GMT -5. The time now is 05:22 PM. |