Hy

I am using Tomcat 4.0 beta6 and have a problem with the CLIENT_CERT auth 
method.

It seems that the authentication will work right because the username appers 
in the access log.

Since I need the username in my servlet I tried to call the methods 
getAuthType(), getRemoteUser() and getUserPrincipal() of the class 
HttpServletRequest, but those calls returned null.

Might this be a configuration error?

The RequestDumper output looks like that:
2001-08-08 11:56:21 RequestDumperValve[Standalone]: 
---------------------------------------------------------------
2001-08-08 11:56:21 RequestDumperValve[Standalone]:           
authType=CLIENT-CERT
2001-08-08 11:56:21 RequestDumperValve[Standalone]:      contentLength=-1
2001-08-08 11:56:21 RequestDumperValve[Standalone]:        
contentType=text/html
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=Date=Wed, 08 Aug 2001 09:56:21 GMT
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=Transfer-Encoding=chunked
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=Server=Apache Tomcat/4.0-b6 (HTTP/1.1 Connector)
2001-08-08 11:56:21 RequestDumperValve[Standalone]:            message=OK
2001-08-08 11:56:21 RequestDumperValve[Standalone]:         
remoteUser=CN=Mike's Test Certificate, OU=Test Unit Name, O=Test Company, 
L=Test City, ST=Test State, C=AT
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             status=200
2001-08-08 11:56:21 RequestDumperValve[Standalone]: 
===============================================================
2001-08-08 11:56:21 RequestDumperValve[Standalone]: REQUEST URI       
=/servlets/servlet/rse.net.rpc.RPCBrokerServlet
2001-08-08 11:56:21 RequestDumperValve[Standalone]:           authType=null
2001-08-08 11:56:21 RequestDumperValve[Standalone]:  characterEncoding=null
2001-08-08 11:56:21 RequestDumperValve[Standalone]:      contentLength=316
2001-08-08 11:56:21 RequestDumperValve[Standalone]:        
contentType=application/octet-stream
2001-08-08 11:56:21 RequestDumperValve[Standalone]:        contextPath=
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=host=192.168.20.16
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.1) 
Gecko/20010607 Netscape6/6.1b1
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=accept=text/xml, application/xml, application/xhtml+xml, 
text/html;q=0.9, image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, 
text/css, */*;q=0.1
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=accept-language=en-us
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=accept-encoding=gzip,deflate,compress,identity
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=accept-charset=ISO-8859-1, utf-8; q=0.667, *; q=0.667
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=keep-alive=300
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=connection=keep-alive
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=content-length=316
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             
header=content-type=application/octet-stream
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             locale=en_US
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             method=POST
2001-08-08 11:56:21 RequestDumperValve[Standalone]:          
parameter=idtype=client
2001-08-08 11:56:21 RequestDumperValve[Standalone]:          
parameter=sessionid=Mike0-7281903686629631912
2001-08-08 11:56:21 RequestDumperValve[Standalone]:          
parameter=request=rpc
2001-08-08 11:56:21 RequestDumperValve[Standalone]:           pathInfo=null
2001-08-08 11:56:21 RequestDumperValve[Standalone]:           
protocol=HTTP/1.1
2001-08-08 11:56:21 RequestDumperValve[Standalone]:        
queryString=request=rpc&sessionid=Mike0-7281903686629631912&idtype=client
2001-08-08 11:56:21 RequestDumperValve[Standalone]:         
remoteAddr=192.168.20.16
2001-08-08 11:56:21 RequestDumperValve[Standalone]:         
remoteHost=192.168.20.16
2001-08-08 11:56:21 RequestDumperValve[Standalone]:         remoteUser=null
2001-08-08 11:56:21 RequestDumperValve[Standalone]: requestedSessionId=null
2001-08-08 11:56:21 RequestDumperValve[Standalone]:             scheme=https
2001-08-08 11:56:21 RequestDumperValve[Standalone]:         
serverName=192.168.20.16
2001-08-08 11:56:21 RequestDumperValve[Standalone]:         serverPort=443
2001-08-08 11:56:21 RequestDumperValve[Standalone]:        servletPath=null
2001-08-08 11:56:21 RequestDumperValve[Standalone]:           isSecure=true
2001-08-08 11:56:21 RequestDumperValve[Standalone]: 
---------------------------------------------------------------

Thanks in advance

_________________________________________________________________
Downloaden Sie MSN Explorer kostenlos unter http://explorer.msn.de/intl.asp

Reply via email to