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

Re^5: How to select NTLM authentication with LWP

by riverron (Sexton)
on Feb 07, 2012 at 02:55 UTC ( #952204=note: print w/replies, xml ) Need Help??

in reply to Re^4: How to select NTLM authentication with LWP
in thread How to select NTLM authentication with LWP

hi, just recently, i've got a need to access an NTLM-protected web page programatically using LWP and i'm getting the same error as yours:
HTTP/1.1 401 Unauthorized Date: Tue, 07 Feb 2012 02:49:17 GMT Server: Microsoft-IIS/6.0 WWW-Authenticate: Negotiate WWW-Authenticate: NTLM WWW-Authenticate: Digest qop="auth",algorithm=MD5-sess,nonce="9bee3c16 +43e5cc01cdd097f1c38245318e8bcc42694833d14128d3c67ab436a651383633536b5 +56d",charset=utf-8,realm="Digest" Content-Length: 83 Content-Type: text/html Client-Date: Tue, 07 Feb 2012 02:49:19 GMT Client-Peer: Client-Response-Num: 7 Client-Warning: Credentials for 'xxpmuser' failed before Title: Error X-Powered-By: ASP.NET
have you had any luck resolving this? TIA, -ron

Replies are listed 'Best First'.
Re^6: How to select NTLM authentication with LWP
by graemestewart (Initiate) on Nov 29, 2012 at 22:24 UTC
    Having this same issue. I've never seen a decent working example of NTLM auth within Perl. Very frustrating.

    Hints on debugging would be appreciated too.

    $gen-auth is almost useless.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2018-01-21 14:59 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (228 votes). Check out past polls.