Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > cgi,htaccess,mysql

Reply
Thread Tools

cgi,htaccess,mysql

 
 
Ryan Howe
Guest
Posts: n/a
 
      10-07-2003
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
 
Reply With Quote
 
 
 
 
Philip Lees
Guest
Posts: n/a
 
      10-08-2003
On Tue, 07 Oct 2003 13:56:52 -0400, "Ryan Howe" <>
wrote:

>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

--
Ignore coming events if you wish to send me e-mail
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57