LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-05-2010, 01:18 PM   #1
graeber
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
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!
 
Old 05-05-2010, 03:44 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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?
 
1 members found this post helpful.
Old 05-05-2010, 06:19 PM   #3
graeber
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
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?
Got it going using libnss-mysql finally. Yeah, I'm not really concerned about security as the account is locked down pretty hardcore. More of just managing users on a subscription level for SSH tunneling.
 
  


Reply



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
PAM -- module key_init.so carolinevdh Linux - Security 2 09-30-2009 11:16 AM
PAM module:passwd:- how many character validate by pam library amit_pansuria Linux - General 3 10-21-2008 01:19 AM
Is there any PAM module can do this ? dmak168 Linux - Security 2 09-02-2008 11:15 AM
PAM Radius Module interpol Linux - Networking 1 02-23-2007 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:38 AM.

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