cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: NTLN do not work with authentication and JCIFS's NtlmHttpFilter

From: LianHwang Ti <lian_hwang_at_hotmail.com>
Date: Thu, 16 Feb 2006 11:04:03 +0800

Tried

curl 7.15.1 (i586-pc-mingw32msvc) libcurl/7.15.1 zlib/1.2.2
Protocols: tftp ftp gopher telnet dict ldap http file
Features: Largefile NTLM SSPI libz

Now NtlmHttpAuthExample managed to get the userid (edited)

Type3=[domain: XXXXXX; user: userid; workstation: IT24; lmResponse:
0x0cc7c3f8a8f85e319a276c9776990c26d59bc3515c20fa0d; ntResponse:
0xd5f9e19237c423d12b4b0544cce42a4b5ae61ff137ce5b7e; sessionKey: 0x; flags:
0x00800235

but failed to authenticate it.

>HEAD /testWeb/NtlmHttpAuthExample HTTP/1.1
>Authorization: NTLM
>TlRMTVNTUAADAAAAGAAYAHAAAAAYABgAiAAAABYAFgBAAAAAEgASAFYAAA
AIAAgAaAAAAAAAAACgAAAANQKAAEYAQQBJAFIAUABSAEkAQwBFAEgAUQBsAGkAYQBuAGgAdwBhAG4AZw
BJAFQAMgA0AG8nwW2Zj8EZobkO/ICuznzXUXcmzpEGlQvZqS2cmSeOvpxjZju0m2tzT9j8EMi9og==
>User-Agent: curl/7.15.1 (i586-pc-mingw32msvc) libcurl/7.15.1 zlib/1.2.2
>Host: localhost:8084
>Accept: */*
>
< HTTP/1.1 401 Unauthorized
HTTP/1.1 401 Unauthorized
< Server: Apache-Coyote/1.1
Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=67A2547EF80EE404154BF3C97C221150; Path=/testWeb
Set-Cookie: JSESSIONID=67A2547EF80EE404154BF3C97C221150; Path=/testWeb
* Authentication problem. Ignoring this.
< WWW-Authenticate: NTLM
WWW-Authenticate: NTLM
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
< Date: Thu, 16 Feb 2006 03:00:43 GMT
Date: Thu, 16 Feb 2006 03:00:43 GMT

* Connection #0 to host localhost left intact
* Closing connection #0
Received on 2006-02-16