Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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]
[Discipulus]: no makita sorry. i see in the synopsis of the module: "WARNING: Only limited real-life experience" might be better compose a SOPW with some code example and data
[Discipulus]: ..or inspect the source code of the module
[makita]: I am doing this:
[makita]: my $sig = $wss->signature( schema => $wsdl, token => $token, sign_types=>'wsa: Action','wsa:To', 'wsu:Timestamp', 'wsa:MessageID',' SOAP-ENV:Body', signer=>DSIG_RSA_S HA1, public_key => $cert,
[Corion]: Oof, I haven't done much with signing SOAP requests. markov is usually somebody good to ask via mail ;)
[makita]: I need to create a SOAP call where are signed more types not only the body
[makita]: I am inspecting it second day :)
[makita]: Thanks
[Discipulus]: better to ask a full SOPW
erix self-flagellates with the cluebat

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2017-03-23 08:49 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.