Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: WWW::Mechanize with NTLM authentication

by runrig (Abbot)
on Sep 04, 2013 at 21:09 UTC ( #1052440=note: print w/ replies, xml ) Need Help??


in reply to WWW::Mechanize with NTLM authentication

Is Authen::NTLM installed?

WWW::Mechanize is a subclass of LWP::UserAgent which is in the libwww-perl distribution. LWP::Authen::NTLM is also part of the distribution (and see the docs for that library), but it requires Authen::NTLM which is not part of the libwww-perl distribution.

And according to the docs, the credentials should be more like:

$ua->credentials('www.company.com:80', '', "MyDomain\\MyUserCode", 'My +Password');


Comment on Re: WWW::Mechanize with NTLM authentication
Download Code
Re^2: WWW::Mechanize with NTLM authentication
by cybershot (Initiate) on Sep 04, 2013 at 23:06 UTC
    Authen::NTLM is installed

    Do I also need to use LWP::Authen::NTLM?

    I'm guessing all I need to do is import one of the two and proceed as before.
      No, if you call credentials() just like the docs say to (one thing I see is that you have 'domain/user' instead of "domain\\user"), then the libary gets imported automatically. You don't need to mention NTLM in your program.
        How can I use Authen::NTLM?

        It keeps saying I need Crypt::DES and Digest::MD4 modules. Do I also import these into C:\Python27\lib?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2014-10-01 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (389 votes), past polls