users@glassfish.java.net

Re: Default principal to role mapping problem...

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Nov 2007 13:05:52 PST

HI,


I am not using explicit role mappings and am relying on the default role to group mapping (which is rolename == groupname).

I am also not running in a cluster. What I am experiencing is weird behavior of request.isUserInRole() in a servlet filter and apparently the wrong treatement of <role-name>*</role-name>

In any case I have found a workaround for now. I simply use the assign-groups property of the realm to add every user to a ALL group and modify the security constraint to <role-name>ALL</role-name>. That at least does the trick and my app is working now.

Perhaps the issues are related underneath but at least something fishy is going on here :-)
I hope someone can find the cause of the problem.

Cheers
  Erik
[Message sent by forum member 'erikengerd' (erikengerd)]

http://forums.java.net/jive/thread.jspa?messageID=245876