I have also this problem and I checked my Subject was correctly filled. Is there a 
solution?? Or could you at least say me if it is not possible as I have been searching 
the solution for a while now.

My commit method is like this:

    public boolean commit() throws LoginException {
           if(subject != null)
        {
        Set principals = subject.getPrincipals();
        if(principals != null)
                {
                principals.add(caller);
                Group callerPrincipal = new SimpleGroup("CallerPrincipal");
                callerPrincipal.addMember(caller);
                principals.add(callerPrincipal);
                // Set the roles for this principal in the 'Roles' group
                Group group = new SimpleGroup("Roles");
                group.addMember(new SimplePrincipal("JBossAdmin"));
                principals.add(group);

                return true;
                }

        }
        return false;

        }

caller is a TestPrincipal created in the login method if it succeeded. This is only a 
test that's why I don't look for the roles of the user and I declare him as a 
JBossAdmin. Is that a problem? I know there is a lot of post about this porblem but 
none could help me.

Thank you

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823097#3823097

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823097


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to