user (system) authentification

From: Date: Mon, 02 Jun 2003 14:14:30 +0000
Subject: user (system) authentification
Groups: php.general 
Request: Send a blank email to php-general+get-149797@lists.php.net to get a copy of this message
Hi, is there a way, to verify a password via php, if it matches it's entry in /etc/shadow ? I am trying to write a script, which needs a user authentification on a server wide basis and since the users come and go rather fast on the server in question, i thought that the best way would be to let the user enter his system username & password and validate it with the one set in /etc/shadow for that entered username. md5() didn't work, so i guess that i am using the wrong method. Does anyone know, how i can achieve this? Regards, Duncan

« previous php.general (#149797) next »