Normally, to get the right CallerPricipal via the ejb getCallerPrincipal method or via the Servlet getUserPrincipal, you have to fill the subject like I did in my post earlier in this thread (look at my commit method). It is to say you got to fill it with your CallerPrincipal (you did) with a group containing the roles (you did) and also with a group called CallerPrincipal containing your UserPrincipal. The getCallerPrincipal method is supposed to return the Principal contained by the group called "CallerPrincipal". Maybe you did it but I didn't see it in your commit method.
But, I did that and it still doesn't work. For most people's problem it seems to be the solution, but not for mine. starksm, I suppose my commit method is fine, and when I check my subject I get this: TestPrincipal: Name--> Tang class: securite.TestPrincipal CallerPrincipal (members:TestPrincipal: Name--> Tang) class: org.jboss.security.SimpleGroup Roles (members:JBossAdmin) class: org.jboss.security.SimpleGroup So my subject seems to be successfully filled. Do you have an other idea why I have this problem?? Excuse my english! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823802#3823802 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3823802 ------------------------------------------------------- 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
