'Authentication in Linux using external PHP script and PAM
I work in a library with computers available for people in common space, with Linux Xubuntu installed on them. And recently we have totally new library system, with a new authentication system. There is a REST API for user authentication
We would like to authenticate users on the terminals using accounts in the new system. For now we have the PHP script on the external server, which calls the API and gives response. The username and password are sent over encrypted channel. The reason for having this script is that we don't want API key to be stored on the computers available for everyone because it gives access to the whole database.
There is a problem what next - we cannot find any PAM module which can be used for that purpose. There is a module https://github.com/1nfiniteloop/pam-http is uses keys and certificates. I think we can adapt it but it will take us some time and human resources. Is there any other way to authenticate user in Linux system using answer from external PHP script?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
