PHP Classes

Login with Linux passwd or shadow: Authenticate Linux users with passwd or shadow

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 49%Total: 671 All time: 4,819 This week: 455Up
Version License PHP version Categories
linux-auth 1.0.0GNU General Publi...5.0PHP 5, User Management, Unix
Description 

Author

This class can authenticate Linux/Unix users with passwd or shadow files.

It can check the system passwd or shadow files to verify if a given password crypt hash is correct for a given system user name.

The class can be used when executed by a system user with sudo permissions to access the system passwd or shadow files.

Innovation Award
PHP Programming Innovation award nominee
December 2011
Number 4


Prize: One copy of the Zend Studio
Some applications need to provide access to authenticated users with accounts in the same Linux server that is working as Web server.

This class provides a PHP wrapper to implement Linux accounts based authentication with the necessary workarounds to make it possible to authenticate even the root user.

Manuel Lemos
Picture of Marcus Brasizza
  Performance   Level  
Name: Marcus Brasizza <contact>
Classes: 6 packages by
Country: Brazil Brazil
Age: 38
All time rank: 63646 in Brazil Brazil
Week rank: 178 Up11 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example to authenticate
Plain text file LinuxAuth.php Class Class to auth

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:671
This week:0
All time:4,819
This week:455Up
User Ratings User Comments (2)
 All time
Utility:70%StarStarStarStar
Consistency:79%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2787
 
I never saw anything less secure than this solution.
12 years ago (Artur Graniszewski)
17%Star
Great Job !!!!.
12 years ago (dario diaz)
57%StarStarStar