Link to home
Start Free TrialLog in
Avatar of Balbir Singh
Balbir SinghFlag for United States of America

asked on

How to let a web application use the user credential of /etc/passwd for authentication purpose?

Basically, I want same a user to use same id and password to login to web based and ssh login both. I am wondering if there is a better way to do it. What is industry standard to solve a situation when a user can use same credential to login via ssh and web.
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would advise against this. Keep your log in for your web app separate from getting into the server. If anything, try using social log in.

Check out https://www.oauthlogin.com/ or https://hybridauth.github.io/. There are plenty of others too. There is also plenty of code out there for creating a log in system of your own including forgot password or forcing some type of authenticator or verification through sms or email.