It looks to me like JBoss's AbstractServerLoginModule's roles grouping method is 
incompatible with tomcat.

In this class's commit() method, there's this little bit of code:

if( subjectGroup instanceof NestableGroup )
  | {
  |     /* A NestableGroup only allows Groups to be added to it so we
  |     need to add a SimpleGroup to subjectRoles to contain the roles */
  |     SimpleGroup tmp = new SimpleGroup("Roles");
  |     subjectGroup.addMember(tmp);
  |     subjectGroup = tmp;
  | }

Tomcat doesn't see the roles in the NestableGroup. So I have overridden the create() 
method so that I produce SimpleGroups instead of Nestables.

Is this expected behaviour? Are NestedGroups for some non-tomcat / non-web 
authentication & authorisation model?

Thanks,
Adam

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827423#3827423";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827423>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to