tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fulford, William" <William.Fulf...@ngc.com>
Subject Return from getRemoteUser and isUserInRole Inconsistent
Date Mon, 25 Jan 2010 20:35:32 GMT
I'm using Tomcat 6.0 with Firefox 3.0.12 and JNDIRealm for
authentication.  When I call HttpServletRequest.getRemoteUser() and
HttpServletRequest.isUserInRole(), I get inconsistent results.
Sometimes I get null for user and other times I get the user name.
Sometimes I get false for isUserInRole() and other times I get true.
More often than not I get null and false, but there is no discernable
pattern.  I always check after the user has been authenticated.  Any
ideas?

Thanks,


Doug Fulford
Software Engineering Specialist
(626)812-2248


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message