Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

authenticate against Linux system accounts

Status
Not open for further replies.

nix45

MIS
Nov 21, 2002
478
US
I want to have a login prompt on a website that authenticates against the local system accounts on a Linux server, meaning the /etc/passwd and /etc/shadow files. I assume it will have to use a PAM module for this. What is the best way of going about doing this?

Thanks,
Chris
 
if you take the credentials (over SSL of course), and telnet, or SSH to the localhost (or whatever box has the credentials from the script, you'd be at least halfway there.

Expect from search.cpan.org might be of use here

--Paul
 
Paul, I did a search for Expect on CPAN and it came up with a few different modules, but I don't think that any of these is what I'm looking for.

The script needs to read the local /etc/passwd and /etc/shadow files for authentication, thats all I'm really looking for. Would any of these modules work?

OpenPlugin::Authenticate::pAM
Apache::AuthPAM
Authen::SimplePAM


Thanks,
Chris
 
I would guess that Authen::SimplePam would work. You could always install it and try it out in a simple script. You may also find more info in the Perl or Linux forums.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top