Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

MD5 authentication with perl

by suresh (Initiate)
on Nov 21, 2002 at 03:03 UTC ( #214693=perlquestion: print w/ replies, xml ) Need Help??
suresh has asked for the wisdom of the Perl Monks concerning the following question:

HTTP requests to do MD5 authentication ??? Thanks

Comment on MD5 authentication with perl
Re: MD5 authentication with perl
by hossman (Prior) on Nov 21, 2002 at 03:42 UTC

    Your question is a little ... er ... "vague"

    Can you explain a little more about what it is you wnat to do?

Re: MD5 authentication with perl
by dingus (Friar) on Nov 21, 2002 at 10:21 UTC
    I'm guessing what you want is for a perl implementation of RFC2617's Digest Access Authentication.

    I'm not aware of a server impementation - though its vaguely possible that some varient of HTTP::Daemon can support this. And LWP only supports Basic Authentication for the client.

    To be honest you are better off using a cookie based authentiation method rather than RFC2617 which is what most websites implement these days. Take a look at md5-login.pm fr an implementation of MD5 cookie authentication.

    Dingus


    Enter any 47-digit prime number to continue.
Re: MD5 authentication with perl
by iburrell (Chaplain) on Nov 21, 2002 at 17:36 UTC
    There is a LWP::Authen::Digest module that does HTTP Digest authentication. LWP::UserAgent should automatically retry the request after calling the authentication handler when the server asks for authentication. The client code needs to set the username and password. Either by calling credentials</cod> or overriding <code>get_basic_credentials to prompt the user.
    $ua = LWP::UserAgent->new(); $ua->credentials($host, $realm, $user, $pass); $ua->request($req);
Re: MD5 authentication with perl
by archen (Pilgrim) on Nov 22, 2002 at 02:05 UTC
    In .htaccess I believe the default is MD5. There is a really nice module for writing apache compatable passwords: Crypt::PasswdMD5 . You might want to ask your administrator what is being used. If that's you, you might want to look at httpd.conf or apache.org for more information. That is if you're using apache. IIS can use some sort of windows authentication scheme, etc.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2014-12-29 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls