IIS + Tomcat Basic Authentication. Retrieve User information !

Hi all,

I am building a system with java servlet on Tomcat. To implement Windows Integrated Authentication and Basic Authentication I have to use IIS with ISAPI connector.

In the first case, when Windows Integrated Authentication is done, the user information is retrieved by decoding (Base64 - NTLM) the req.getHeader("Authorization").

But in Basic Authentication case, I can not decode the req.getHeader("Authorization") to get the user 's information (I do not know the format of this information - perhap it is not Base64 or NTLM).

Any idea ?

Thanks in advanced !

[606 byte] By [munumberonea] at [2007-11-26 17:27:34]
# 1
I have found the solution. No need to decode the Negotiate data, just use getRemoteUser() function. Before it, please set the tomcatAuthentication="false" in your jk2.properties file. http://www.junlu.com/msg/154619.html for more detail !Thanks !
munumberonea at 2007-7-8 23:55:31 > top of Java-index,Security,Other Security APIs, Tools, and Issues...