Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 about the Monastery: (15)
As of 2015-07-07 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls