cgi,htaccess,mysql

R

Ryan Howe

Hello, (*Note Some of this may be considered off topic)
I was hoping someone could point me in the right direction on this.
Basically what I have is a cgi script that I want protected by htaccess.
Not a problem, but I want it to authenticate against a MySQL database. I
looked into mod_mysql_auth but it is not suitable for many reasons
(trouble compiling,breaks other things etc.). Anyway is there a way that I
use a directive in httpd.conf (using apache by the way) to have htaccess
use a perl script to authenticate and then return that back to the
htaccess for acceptance or denial? Sorry if this is either unclear or if
I should be asking this somewhere else (if so tell me and I will not
bother you folks).

Thank you,
Ryan
 
P

Philip Lees

Basically what I have is a cgi script that I want protected by htaccess.
Not a problem, but I want it to authenticate against a MySQL database.

Not exactly what you're asking, but if you install the
Apache::Htpasswd module you can keep Apache's password file
synchronised with the user names and passwords in your MySQL database.

In other words, do it the other way around.

Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top