fabio286 / php-pwauth
A pwauth driver in PHP
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/fabio286/php-pwauth
Requires
- php: ^5.3
This package is auto-updated.
Last update: 2025-10-22 02:22:27 UTC
README
Requirements
PAM authentication drivers works by passing username and password to the application Pwauth, so this application is required.
It's possible to install this application by running sudo apt-get install pwauth
or via sources.
Pwauth sources available at:
https://github.com/phokz/pwauth/tree/master/pwauth
Usage
Instantiate the PWAuth
class and invoke the Authenticate
method, passing it user and password.
$pwauth = new PWAuth; $login = $pwauth->Authenticate('username', 'password');
It returns an associative array with user informations.
$login['user'] // Username $login['uid'] // ID $login['gid'] // Group ID $login['comment'] // Comment $login['dir'] // Directory $login['shell'] // Shell // GECOS FORMAT FIELDS $login['name'] // Name $login['building'] // Buolding $login['phone'] // Phone $login['other'] // Other