Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^6: How to select NTLM authentication with LWP

by tiedwu (Initiate)
on Oct 12, 2011 at 08:20 UTC ( #930931=note: print w/replies, xml ) Need Help??


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

You said I should add ntlmv2(1), but the one problem is there is no function called ntlmv2 in Mark Bush's Authen::NTLM, so I am just confusing.

By adding some codes to output debug message, the http headers receiving and sending like -

Receiving Header

DEBUG: CHALLENGE=NTLM

Sending Header

DEBUG: AUTH_VALUE=NTLM TlRMTVNTUAABAAAAB7IAAAgACAAgAAAACAAIACgAAAA5NTA4MzEwMXF1YW50YWNu

Receiving Header

DEBUG: CHALLENGE=NTLM TlRMTVNTUAACAAAAEAAQADgAAAAFgoECPKv/RSekCEkAAAAAAAAAAI4AjgBIAAAABQLODgAAAA9SAFMAUQBVAEEATgBUAEEAAgAQAFIAUwBRAFUAQQBOAFQAQQABAA4AUQBTAE0AQwBIAFIANQAEABgAUgBTAFEAdQBhAG4AdABhAC4AYwBvAG0AAwAoAHEAcwBtAGMAaAByADUALgBSAFMAUQB1AGEAbgB0AGEALgBjAG8AbQAFABgAUgBTAFEAdQBhAG4AdABhAC4AYwBvAG0AAAAAAA==

Sending Header

DEBUG: AUTH_VALUE=NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAABAAEABwAAAAEAAQAIAAAAAQABAAkAAAAAAAAABgAAAABYKBAuQZ9M9LeG8EjqdivTY2s5nJtXiH67DptXptZiLTjwA5EcoOL/rTVRhRokq/SFJ4o3EAdQBhAG4AdABhAGMAbgA5ADUAMAA4ADMAMQAwADEAOQA1ADAAOAAzADEAMAAxAA==

Then falls into 401: Unauthorized.

I am wondering the last header received from server was wrong or the last header which send to server was wrong.
  • Comment on Re^6: How to select NTLM authentication with LWP

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930931]
help
Chatterbox?
[Tux]: ELISHIVA, erix, Discipulus, afoken DBD::CSV now pushed. Try wget https://github. com/perl5-dbi/DBD- CSV/archive/ a26beac1.tar.gz -O DBD-CSV-0.50_01- a26beac1.tgz

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-05-29 06:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?