cURL / Mailing Lists / curl-library / Single Mail

curl-library

NTLM authentication error

From: Test ID <livetestid_at_live.in>
Date: Thu, 26 Jul 2012 13:08:58 +0530

I am facing an issue similar to http://curl.haxx.se/mail/archive-2012-07/0024.htmlSometimes the authentication works, other times it does not.
I am using libcurl 7.24.0
Here is the verbose output:
* About to connect() to outlook.***.com port 443 (#0)* Trying ***.***.***.***...* connected* Connected to outlook.***.com (***.***.***.***) port 443 (#0)* successfully set certificate verify locations:* CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none* SSL connection using RC4-MD5* Server certificate:* **** SSL certificate verify ok.> POST /ews/exchange.asmx HTTP/1.1Host: outlook.***.comAccept: */*Accept-Encoding: deflate, gzipSOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderHierarchy"Content-Type: text/xml; charset=utf-8Content-Length: 632
* upload completely sent off: 632 out of 632 bytes< HTTP/1.1 401 Unauthorized< Server: Microsoft-IIS/7.0< WWW-Authenticate: Negotiate< WWW-Authenticate: NTLM< WWW-Authenticate: Basic realm="outlook.***.com"< X-Powered-By: ASP.NET< Date: Thu, 26 Jul 2012 06:37:59 GMT< Content-Length: 0* Added cookie outlook.***.com="***" for domain outlook.***.com, path /, expire 0< Set-Cookie: outlook.***.com=***; path=/<* Connection #0 to host outlook.***.com left intact* Issue another request to this URL: 'https://outlook.***.com/ews/exchange.asmx'* Re-using existing connection! (#0) with host (nil)* Connected to (nil) (***.***.***.***) port 443 (#0)* Server auth using NTLM with user '***'> POST /ews/exchange.asmx HTTP/1.1Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=Host: outlook.***.comAccept: */*Accept-Encoding: deflate, gzipCookie: outlook.***.com=***SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderHierarchy"Content-Type: text/xml; charset=utf-8Content-Length: 0
< HTTP/1.1 401 Unauthorized< Server: Microsoft-IIS/7.0< WWW-Authenticate: NTLM TlRMTVNTUAACAAAACQAJADgAAAAGgokCR6lsY7wYY7AAAAAAAAAAAMAAwABBAAAABgByFwAAAA9DT1JQT1JBVEUCABIAQwBPAFIAUABPAFIAQQBUAEUAAQAUAEUAWAAwADcALQBDAEEAUwAwADMABAAgAGEAbABsAGUAZwBpAHMAZwByAG8AdQBwAC4AYwBvAG0AAwA2AEUAWAAwADcALQBDAEEAUwAwADMALgBhAGwAbABlAGcAaQBzAGcAcgBvAHUAcAAuAGMAbwBtAAUAIABhAGwAbABlAGcAaQBzAGcAcgBvAHUAcAAuAGMAbwBtAAcACADfUSgz+WrNAQAAAAA=< WWW-Authenticate: Negotiate< WWW-Authenticate: Basic realm="outlook.***.com"< X-Powered-By: ASP.NET< Date: Thu, 26 Jul 2012 06:37:59 GMT< Content-Length: 0<* Connection #0 to host (nil) left intact* Issue another request to this URL: 'https://outlook.***.com/ews/exchange.asmx'* Re-using existing connection! (#0) with host (nil)* Connected to (nil) (***.***.***.***) port 443 (#0)* Server auth using NTLM with user '***'> POST /ews/exchange.asmx HTTP/1.1Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAMAAwAeAAAAAAAAAAAAAAABoKJAvpJkz8+0qL+AAAAAAAAAAAAAAAAAAAAANc9EbU31Efa5+96Fjm+BQN6hwReMvWb+GpzZW5rYmVpaXAtMTAtMC0wLTQ0Host: outlook.***.comAccept: */*Accept-Encoding: deflate, gzipCookie: outlook.***.com=***SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderHierarchy"Content-Type: text/xml; charset=utf-8Content-Length: 632
* upload completely sent off: 632 out of 632 bytes< HTTP/1.1 200 OK< Cache-Control: private, max-age=0< Content-Length: 6824< Content-Type: text/xml; charset=utf-8< Server: Microsoft-IIS/7.0< X-AspNet-Version: 2.0.50727< X-Powered-By: ASP.NET< Date: Thu, 26 Jul 2012 06:38:00 GMT< Vary: Accept-Encoding< Content-Encoding: gzip< Connection: Keep-Alive<* Connection #0 to host (nil) left intact* Re-using existing connection! (#0) with host (nil)* Connected to (nil) (***.***.***.***) port 443 (#0)* Server auth using NTLM with user '***'> POST /ews/exchange.asmx HTTP/1.1Host: outlook.***.comAccept: */*Accept-Encoding: deflate, gzipCookie: outlook.***.com=***SOAPAction: "http://schemas.microsoft.com/exchange/services/2006/messages/SyncFolderItems"Content-Type: text/xml; charset=utf-8Content-Length: 687
* upload completely sent off: 687 out of 687 bytes< HTTP/1.1 401 Unauthorized< Server: Microsoft-IIS/7.0< WWW-Authenticate: Negotiate* NTLM handshake failure (internal error)* Authentication problem. Ignoring this.< WWW-Authenticate: NTLM< WWW-Authenticate: Basic realm="outlook.***.com"< X-Powered-By: ASP.NET< Date: Thu, 26 Jul 2012 06:38:00 GMT< Content-Length: 0<* Connection #0 to host (nil) left intact
                                               

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-07-26