chuleto1 has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks:
I am looking for a VERY simple perl script that uses the .htaccess and the .htpasswd files. Can anyone point me to any free on the web?

thanks

Replies are listed 'Best First'.
Re: I am looking for a cgi login script
by Kanji (Parson) on Sep 02, 2002 at 04:43 UTC

    I don't believe either MSA or NMS have CGI login scripts, so you might want to check out some of the general script listings, like The Perl Archive's section on Password Protection Scripts.

    But I have to confess to being a little confused: why do you need a CGI login script that uses .htaccess when .htaccess provides it's own login capabilities?

    If all you're really after is a CGI to adminster .htpasswd files for use with .htaccess-protected sites, then I suggest Lincoln Stein's excellent user_manage (alt.) -- if not the script itself, then certainly the modules it's bundled with.

        --k.


Re: I am looking for a cgi login script
by greenFox (Vicar) on Sep 02, 2002 at 05:16 UTC

    You could also have a look at Apache::Htpasswd and merlyn's Basic Cookie Management.

    I am with Kanji though, .htaccess does authentication at a directory level and hence before your script is even accessed. What is it you are trying to do?

    --
    Until you've lost your reputation, you never realize what a burden it was or what freedom really is. -Margaret Mitchell

Re: I am looking for a cgi login script
by talexb (Chancellor) on Sep 02, 2002 at 03:50 UTC
    How about NMS instead of that source of creaky old junk?

    --t. alex
    but my friends call me T.

Re: I am looking for a cgi login script
by jeorgen (Pilgrim) on Sep 03, 2002 at 09:28 UTC
    chuleto1 writes:

    I am looking for a VERY simple perl script that uses the .htaccess and the .htpasswd files.

    See my node Re: Application Access Control, for answer + code for that question.

    /jeorgen

A reply falls below the community's threshold of quality. You may see it by logging in.