Hi

   Actually i am using Login module (DatabaseLoginModule) which extends 
UsernamePasswordLoginModule.  Things are working fine as far as logging in,  But i 
have my own Principal class called 'OurPrinciapal' which i want to use instead of 
SimplePrincipal, but in my session bean i am getting instance of 
org.jboss.security.SimplePrincipal.  

   In my DatabaseLoginModule, in the method login() i do some thing like

SecurityAssociation.setPrincipal( new OurPrincipal( getUsername() ) );

   But in EJB when i do 
context.getCallerPrincipal.getName()  its returning 
org.jboss.security.SimplePrincipal, but i want it to be 'OurPrincipal'

  i have been trying this for past two days,   Can anyone tell me how to use my 
'OurPrincipal'?

  Thanx


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

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


-------------------------------------------------------
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