Problem solved. I had to modify the Commit method of my login module as follows:
************
TestGroup roles = new TestGroup("Roles");
TestPrincipal user = new TestPrincipal(username);
roles.addMember(new TestPrincipal("JBossAdmin"));
subject.getPrincipals().add(user);
subject.getPrincipals().add(roles);
************
Was I blind that I've never seen the need for the first line? It seemd to me that all
materials only stated to have the role added as a principal to the subject's
principals.
Is the above based on standard j2ee or this is jboss specific?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853771#3853771
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853771
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user