Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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

Replies are listed 'Best First'.
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 fr an implementation of MD5 cookie authentication.


    Enter any 47-digit prime number to continue.
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 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 for more information. That is if you're using apache. IIS can use some sort of windows authentication scheme, etc.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://214693]
Approved by footpad
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2018-06-21 11:13 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.