users@glassfish.java.net

HttpServletRequest.isUserInRole() always returns false

From: <forums_at_java.net>
Date: Mon, 30 May 2011 11:05:56 -0500 (CDT)

Hello,

 

I have problem with HttpServletRequest.isUserInRole() method on GlassFish v
3.1. It returns 'true' only once after deploying the application and then
always returns 'false'. HttpServletRequest.getUserPrincipal() works fine.

 

I use LDAP realm with user groups defined. I have described roles in
<security-role>, <security-constraint>/<auth-constraint>/<role-name> and
<servlet>/<security-role-ref> elements in web.xml and also mapped them to
user groups in <security-role-mapping> elements in sun-web.xml.

 

Best regards,

Roman Polozov

 


--
[Message sent by forum member 'rpolozov']
View Post: http://forums.java.net/node/807669