Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: htaccess through perl without apache

by jsprat (Curate)
on Mar 27, 2003 at 01:16 UTC ( #246129=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: htaccess through perl without apache
in thread htaccess through perl without apache

From perldoc -f crypt:

When verifying an existing encrypted string you should use the encrypted text as the salt (like "crypt($plain, $crypted) eq $crypted"). This allows your code to work with the standard "crypt" and with more exotic implementations.

Works perfectly with htpasswd.

Update: Or you could try Apache::Htpasswd.

$foo = new Apache::Htpasswd({passwdFile => "path-to-file", ReadOnly => 1} ); # Check that a password is correct $pwdFile->htCheckPassword("zog", "password");


Comment on Re: Re: Re: htaccess through perl without apache
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2014-10-25 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (145 votes), past polls