Using mod_auth_mysql w/ PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I've set up mod_auth_mysql to authenticate users to a mysql database.
However, I would like to pass the credentials passed to the
auth_mod_mysql module on to a php script. Is this possible?

Re: Using mod_auth_mysql w/ PHP

An now that I think about it I suppose the reverse could work too.
Could I pass credentials to apache authentication from PHP. SSL would
be used if that makes a difference.

Re: Using mod_auth_mysql w/ PHP wrote:
Quoted text here. Click to load it

Yes and no.

Apache sets the user name in $_SERVER['REMOTE_USER'].  But the password, group  
info, etc. are not passed on.

(Reference your follow up question) And no, you can't pass from a php script to  
mod_auth_mysql.  Apache authentication takes place long before any page is loaded.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline