users@glassfish.java.net

Re: HttpServletRequest.isUserInRole() always returns false

From: Kumar Jayanti <v.b.kumar.jayanti_at_oracle.com>
Date: Tue, 31 May 2011 10:23:27 +0530

send us the app.

On 30-May-2011, at 9:35 PM, forums_at_java.net wrote:

> 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
>
>