I’m wondering if there’s a way to integrate Yii2 authentication with the operating system (mainly Ubuntu) so the users are authenticated and can login using their Ubuntu username and password.
I’ve done some research and can see PHP had a module (now deprecated) called PHP PAM but being deprecated, it may not be a good option.
The other option I’m thinking is to do the authentication on the web server level (in this case Apache2) and not the web application itself, but again not having done this in the past has made me reach out to the experts on this forum.
The web application I’m working on will not have many users and the intention is to not have application level users but be able to login with the OS user and also perform OS level tasks (and run OS level commands) and display the results.
Also, other than the PHP system() function, are you familiar with any other methods to invoke OS (Ubuntu) level commands?