Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

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('', '', "MyDomain\\MyUserCode", 'My +Password');

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052440]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2018-05-27 18:33 GMT
Find Nodes?
    Voting Booth?