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