[jcifs] No response from IE

Vineet Gera vineetg at pramati.com
Wed Dec 8 13:53:31 GMT 2004


I am attaching the http headers sent by firefox and by IE. We notice
this problem with all our IE clients. When IE receives the
	WWW-Authenticate: NTLM
header, it starts to take 100% CPU. [It is not completely out of control
... you can press the stop button to make it stop consuming the CPU].
Firefox on the other hand responds to the ``WWW-Authenticate'' request
with a ``Authorization: NTLM'' header. 

Interestingly, Firefox sends the ``Authorization: NTLM'' request twice.
Is that normal? The data following the  ``Authorization: NTLM'' part
seems to be different in the two request headers.

<ie-headers>
GET /OrderAppWeb/index.htm HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; .NET CLR
1.0.3705; .NET CLR 1.1.4322)
Host: vineet-gera:8181
Connection: Keep-Alive


HTTP/1.1 401 UNAUTHORIZED
Server: Pramati Server
Date: Wed, 08 Dec 2004 13:40:57 GMT
Content-Type: text/plain; charset=ISO-8859-1
Transfer-Encoding: chunked
Connection: Keep-Alive
WWW-Authenticate: NTLM
</ie-headers>

<firefox-headers>
http://vineet-gera:8181/OrderAppWeb/

GET /OrderAppWeb/ HTTP/1.1
Host: vineet-gera:8181
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8
Accept:
application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 401 UNAUTHORIZED
Server: Pramati Server
Date: Wed, 08 Dec 2004 13:38:35 GMT
Content-Type: text/plain; charset=ISO-8859-1
Transfer-Encoding: chunked
Connection: Keep-Alive
WWW-Authenticate: NTLM
----------------------------------------------------------
http://vineet-gera:8181/OrderAppWeb/

GET /OrderAppWeb/ HTTP/1.1
Host: vineet-gera:8181
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8
Accept:
application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Authorization: NTLM TlRMTVNTUAABAAAAB4IIAAAAAAAAAAAAAAAAAAAAAAA=

HTTP/1.x 401 UNAUTHORIZED
Server: Pramati Server
Date: Wed, 08 Dec 2004 13:38:48 GMT
Content-Type: text/plain; charset=ISO-8859-1
Set-Cookie: JSESSIONID=001-5854195660527354492; Path=/
Transfer-Encoding: chunked
Connection: Keep-Alive
WWW-Authenticate: NTLM
TlRMTVNTUAACAAAADgAOADAAAAAFAoEATQELeotBLkAAAAAAAAAAADQANAA+AAAAUAByAGEAbQBhAHQAaQACAA4AUAByAGEAbQBhAHQAaQABABoASgBDAEkARgBTADEAXwAxADYANgBfAEQANQAAAAAA
----------------------------------------------------------
http://vineet-gera:8181/OrderAppWeb/

GET /OrderAppWeb/ HTTP/1.1
Host: vineet-gera:8181
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8
Accept:
application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Authorization: NTLM
TlRMTVNTUAADAAAAGAAYAGgAAAAYABgAgAAAAAAAAABAAAAADAAMAEAAAAAcABwATAAAAAAAAAAAAAAABQIAAHMAYQB0AGkAcwBoAFMAQQBUAEkAUwBIAC0ARABVAEcARwBBAE4AQQBqRYVONpczcbP1xbwZMCL7X8OTziQPjESKvdKOhR/+nCge5qbxFsGD1NGViSvcmHg=
Cookie: JSESSIONID=001-5854195660527354492

HTTP/1.x 302 MOVED_TEMPORARILY
Server: Pramati Server
Date: Wed, 08 Dec 2004 13:38:51 GMT
Location: http://vineet-gera:8181/OrderAppWeb/index.htm
Content-Length: 0
----------------------------------------------------------
http://vineet-gera:8181/OrderAppWeb/index.htm

GET /OrderAppWeb/index.htm HTTP/1.1
Host: vineet-gera:8181
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6)
Gecko/20040206 Firefox/0.8
Accept:
application/x-shockwave-flash,text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=001-5854195660527354492

HTTP/1.x 200 OK
Server: Pramati Server
Date: Wed, 08 Dec 2004 13:38:51 GMT
Content-Length: 3744
Content-Type: text/html
Connection: Keep-Alive
Last-Modified: Tue, 27 Nov 2001 10:42:52 GMT
----------------------------------------------------------
</firefox-headers>



On Tue, 2004-12-07 at 19:46, Roland Knight wrote:
> We have the same issue on certain IE clients. The failure occurs at a client
> site, and only for a certain user group on specific workstations (other
> users on the same workstation work fine, and this user group on other
> workstatation are also fine). Seems like a registry difference, but the
> lmcompatibility registry entries are 0
> (HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\lmlompatibilitylevel
> and
> HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\LSA\MSV1_0\NtlmMinClient
> Sec). The server (Tomcat in this case) receives only a single request from
> the browser, after that NO further request is recevied. Haven't got a packet
> trace yet, but it fails so early in the process that I'm not sure that will
> provide much information. Any ideas?
> 
> 
> -----Original Message-----
> From: jcifs-bounces+rknight=conceptwave.com at lists.samba.org
> [mailto:jcifs-bounces+rknight=conceptwave.com at lists.samba.org] On Behalf Of
> Vineet Gera
> Sent: Tuesday, December 07, 2004 12:35 AM
> To: jcifs at lists.samba.org
> Subject: [jcifs] No response from IE
> 
> 
> Hi,
> 
> While using the NTLM HTTP Authentication provided by jCIFS, when I tried to
> access through Mozila it asks for login/password and when the NT
> login/password are provided the required page is displayed. But with the
> same configuration when i try to access through IE there is no response.
> Please suggest.
> 
> Thx,
> Vineet
> 




More information about the jcifs mailing list