Page 1 of 1

digest authentication and PHP

Posted: Tue Jan 14, 2003 2:45 am
by Paul Oertel
My site uses digest authentication for user logins. I want to make a web front end for users and administrators to change their passwords and manage users. Is there a way to use the system() function to send and receive data from htdigest. I am able to send a command to htdigest and get a result of 1 back but htdigest requires more user interaction. Can this be done with PHP?

Code: Select all

$command=""c:\\Program Files\\Apache Group\\Apache\bin\\htdigest" "c:\\Program Files\\Apache Group\\Apache\\conf\\passwd" ".$realm." ".$userid;
echo $command;
system($command, $result);
echo $result;
This sends the necessary command to htdigest a returns an exit code of 1 but no request for the user to change their passwd.

Thank you for your help in advance.