http://www.perlmonks.org?node_id=214693

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

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

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 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 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 apache.org for more information. That is if you're using apache. IIS can use some sort of windows authentication scheme, etc.