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.
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.
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.