Yun Feng Chua wrote:
> 
>  Thank for the reply...
> 
> Does that mean i should start looking at the IIS for the failed 
> authentication?

In a nutshell, yes.

I would start by simplifying the test case : create a static html page under 
IIS, and make
it covered by the authentication, so that from the browser you can just call up 
that page
to see the problem, without involving isapi_redirect and Tomcat.

But then, it will get more complicated, because you will probably need to have 
some
network analysis tool (wireshark e.g.), to trace what is going on between the 
IIS server,
and the domain controller.
If you are not a specialist yourself, I suggest you get help from one (Windows 
network
sysadmin type), because this can be quite complex.
It might be worth first looking into the Event Logs of the IIS machine, to see 
if anything
shows up about these missed authentications.

Now, just taking a step back for a second : in your initial post, you mention 
that this
happens when the CPU of your IIS machine is loaded at 100%.  This is probably a 
sign that
the load you are imposing on it is too big for the machine. Maybe the solution 
is just to
get a bigger/faster machine (or add some RAM to it), no ?

If that is not possible, you can always move Tomcat to another machine, and 
adapt the
configuration of isapi_redirect in function of that.  There is no applications 
change
needed for that.


> 
>  
> 
>> Date: Wed, 21 Jul 2010 09:45:57 +0200
>> From: a...@ice-sa.com
>> To: users@tomcat.apache.org
>> Subject: Re: isapi_redirect.dll fail in SSO on high cpu load
>>
>> Yun Feng Chua wrote:
>>> Hi, 
>>>
>>> Currently using Tomcat 5.5 and isapi_redirect.dll 1.2.14 
>> (that is old, the current version is 1.2.30 or so)
>> in IIS 6.0
>>> Configure with IIS integrated authentication for SSO.
>> So, it is IIS doing the authentication with the browser, right ?
> 
>  
> 
> Yes, IIS is doing the NTLM authentication.
> 
> 
>>> Notice that under high cpu load in the server, 100% util, the website 
>>> prompt for authentication.
>>> When the cpu load subsided, the SSO is working. 
>>>
>>> Any ideas why it prompt for authentication under heavy cpu load?
>>>
>> Not per se, but this does not sound like a Tomcat or mod_jk/isapi_redirect 
>> problem.
>> If IIS is doing the Windows Integrated Authentication (otherwise known as 
>> NTLM), this is a
>> dialog between the browser, the IIS server, and some domain controller (to 
>> check the
>> user's/browser's credentials). mod_jk/isapi_redirect and Tomcat do not 
>> participate in
>> that dialog.
>> Only when the dialog is succesful, does IIS pass the request to 
>> mod_jk/isapi_redirect
>> (with a user-id), and from there to Tomcat.
>> At first sight, it looks as if, under heavy IIS load, IIS may have problems 
>> achieving the
>> NTLM user authentication (e.g., trouble contacting the domain controller ?). 
>> If that is
>> the case, it will not be able to authenticate the browser's credentials, and 
>> will send
>> back a 401 error to the browser. That is when the browser pops up a login 
>> dialog.
>>
>> When you say "the website prompt for authentication", you mean that the 
>> browser shows the
>> built-in pop-up login window, right ?
> 
>  
> 
> Yes, that is the pop-up login window.
> 
> 
>> Tip: with IE, you can get an add-on called Fiddler2, which captures and 
>> shows the exact
>> dialog between browser and server. That is useful for this kind of problem.
>>
>> Theoretically, you could also set the log level of mod_jk/isapi_redirect to 
>> "debug", and
>> see that the request do not even reach mod_jk/isapi_redirect or Tomcat.
>> But because this happens under heavy load, that would give you /tons/ of 
>> output to check,
>> and would not be very usable in this case. Specially since you are looking 
>> for request
>> that /do not/ reach Tomcat.
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
> 
>                                         


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to