cgi,htaccess,mysql

Discussion in 'Perl Misc' started by Ryan Howe, Oct 7, 2003.

  1. Ryan Howe

    Ryan Howe Guest

    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
     
    Ryan Howe, Oct 7, 2003
    #1
    1. Advertising

  2. Ryan Howe

    Philip Lees Guest

    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
     
    Philip Lees, Oct 8, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stoco

    .htaccess and perl cgi

    Stoco, Jan 12, 2004, in forum: Perl
    Replies:
    0
    Views:
    2,874
    Stoco
    Jan 12, 2004
  2. Steve

    servlet et .htaccess

    Steve, May 6, 2004, in forum: Java
    Replies:
    1
    Views:
    1,176
    Michael Scovetta
    May 6, 2004
  3. Replies:
    1
    Views:
    585
    Michael Wojcik
    May 28, 2005
  4. David Dorward
    Replies:
    2
    Views:
    1,709
    Art Sackett
    Jun 29, 2003
  5. Luigi Ma
    Replies:
    0
    Views:
    146
    Luigi Ma
    Nov 21, 2007
Loading...

Share This Page