You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/12/29 17:45:29 UTC

DO NOT REPLY [Bug 38072] New: - Http Client: NTLM Authorization does not work with servers that require NTLM response in the authorization

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38072>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38072

           Summary: Http Client: NTLM Authorization does not work with
                    servers that require NTLM response in the authorization
           Product: HttpClient
           Version: 3.0 RC4
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HttpAuth
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: twaisel@mercury.com


I've tried to get http client to use NTLM authentication 
or Proxy Authentication with NTLM (for the proxy, not the server),
In both cases I see that in the Authorization/Proxy Authorization header, 
only the LAN Manager response is sent and not the NTLM response (I've seen this 
in a sniffer and in the code itself, see below).
This will not work with servers that their security settings does not allow 
this, 
Some require NTLM and do not allow to receive only LM. (NTLM is more secure).

I've looked at the NTLM.java class (In org.apache.commons.httpclient), 
and looks like it really does not send the NTLM response on purpose
(It sets its length to zero).

To check the security settings in windows go to:
Control Panel -> Administrative Tools ->
Local Security Policy -> Local Policies ->
Security Options -> LAN Manager authentication Level

Note that Domain settings override local settings

Is there a way to make it work? (Assuming I can't force the server to accept 
LAN Manager response only),
And if not, is it planned to be supported in the http client?

Thanks,
Tali.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38072] - Http Client: NTLM Authorization does not work with servers that require NTLM response in the authorization

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38072>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38072


olegk@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|HttpAuth                    |Commons HttpClient
         Resolution|                            |INVALID




------- Additional Comments From olegk@apache.org  2005-12-29 18:50 -------
Tali,
HttpClient supports NTLMv1 only and is known to be incompatible with NTLMv2.
There are no plans to introduce support for NTLMv2 at any point of time. We are
considering removing NTLM code from HttpClient altogether and using JCIFS
instead as an optional dependency.

Oleg 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38072] - Http Client: NTLM Authorization does not work with servers that require NTLM response in the authorization

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38072>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38072





------- Additional Comments From twaisel@mercury.com  2006-01-01 10:35 -------
Hi Oleg,

I understand, but from what I saw we don't send the NTLM response at all, only 
the LAN Manager
>From your reply I understand that this is also a part of NTLMv2?,
I was reading a tutorial on NTLM and it seems to say that there should be an 
NTLM reponse for both v1 and v2 (though different)
(http://davenport.sourceforge.net/ntlm.html#theType3Message, see relevant part 
below)

Thanks,
Tali.

Responding to the Challenge
The client creates one or more responses to the Type 2 challenge, and sends 
these in the Type 3 message. There are five types of responses: 

LM (LAN Manager) Response - Sent by most clients, this is the "original" 
response type. 
NTLM Response - This is sent by NT-based clients, including Windows 2000 and 
XP. 
NTLMv2 Response - A newer response type, introduced in Windows NT Service Pack 
4. This replaces the NTLM response on systems that have NTLM version 2 enabled. 
LMv2 Response - The replacement for the LM response on NTLM version 2 systems. 
NTLM2 Session Response - Used when NTLM2 session security is negotiated without 
NTLMv2 authentication, this scheme alters the semantics of both the LM and NTLM 
responses.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 38072] - Http Client: NTLM Authorization does not work with servers that require NTLM response in the authorization

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38072>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38072





------- Additional Comments From olegk@apache.org  2006-01-01 20:37 -------
(In reply to comment #2)
> Hi Oleg,
> 
> I understand, but from what I saw we don't send the NTLM response at all, only 
> the LAN Manager
> From your reply I understand that this is also a part of NTLMv2?,
> I was reading a tutorial on NTLM and it seems to say that there should be an 
> NTLM reponse for both v1 and v2 (though different)
> (http://davenport.sourceforge.net/ntlm.html#theType3Message, see relevant part 
> below)
> 
> Thanks,
> Tali.
> 

Quite frankly I cannot say. The NTLM is a closed, proprietary protocol and I
have no intention of reverse-engineering it. This is the main why I personally
prefer to see the existing outdated NTLM scheme replaced with a one based on a
third-party library. 

Oleg

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org