Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: non-mod_perl authentication

by Chmrr (Vicar)
on Nov 26, 2002 at 15:50 UTC ( #215851=note: print w/ replies, xml ) Need Help??

in reply to non-mod_perl authentication

A quick clarification -- mod_perl is not needed to do HTTP Simple authentication, which is what .htaccess and .htpasswd files will get you by default. Also, mod_perl is easy to get for Apache 2.0 under win32.

That being said, this is more of an Apache question than a perl question. You simply need to set up your .htaccess and .htpasswd files correctly, and without any perl programming, you'll get Simple authentication (which may or may not be what you want..) A quick search turned up this quick guide to writing said files. As it notes, $ENV{REMOTE_USER} will be set to the remote user name.

mod_perl will come in handy if you want to authenticate against other, more complicated authentication sources.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Comment on Re: non-mod_perl authentication

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://215851]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2014-07-26 16:18 GMT
Find Nodes?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:

    Results (178 votes), past polls