cURL / Mailing Lists / curl-users / Single Mail

curl-users

NTLN do not work with authentication and JCIFS's NtlmHttpFilter

From: LianHwang Ti <lian_hwang_at_hotmail.com>
Date: Tue, 14 Feb 2006 09:50:29 +0800

I've used JCIFS's NtlmHttpFilter to implement a web filter to enable
NT based authentication. The filter works with the MSIE client, but cannot
work
with

curl --ntlm -u:userid:password http://localhost/...

If I use curl to access a IE web server with NT authentication turned on it
worked.
So does using curl with proxy based authentication.

On debugging the filter, it shows that the userid to be null:

Authehtication: NTLM
TlRMTVNTUAADAAAAGAAYAEUAAAAYABgAXQAAAAAAAABAAAAABQAFAEAAAAAAAAAARQAAAAAAAAB1AAAAAYIAAG1lZW5hT4okKCQght8hjakdJd2kG1fpobeVQMN0rcXrjEjtyS4DkempxRSSuh96RdFAJDx/

src.length = [117]

Type3=[domain: ; user: ; workstation: ; lmResponse:
0x4f8a2428242086df218da91d25dda41b57e9a1b79540c374; ntResponse:
0xadc5eb8c48edc92e0391e9a9c51492ba1f7a45d140243c7f; sessionKey: 0x; flags:
0x00008201

Any ideas ?

curl 7.15.1 (i586-pc-mingw32msvc) libcurl/7.15.1 OpenSSL/0.9.7e zlib/1.2.2
Protocols: tftp ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL libz

jcifs_1.1.11.jar used

Thanks
Received on 2006-02-14