Let me explain error:

in MyLoginModule commit method:

  | Set principals = subject.getPrincipals();
  |             principals.add(new UserPrincipal(name));
  | 
  |             for (Iterator it = principals.iterator(); it.hasNext();)
  |             {
  |                 Principal principal = (Principal) it.next();
  | 
  |             }
  | 
  |             Role role = new Role("Roles");
  |             role.addMember(userPrincipal);
  |             principals.add(role);
  | 
UserPrincipal difined as
public class UserPrincipal extends SimplePrincipal
Role defined as
public class Role extends SimpleGroup
test.jsp  has such code

  | <%="principal: "+request.getUserPrincipal()%><br>
  | <%="class: "+request.getUserPrincipal().getClass().getName()%><br>
  | 
After logining a have such lines in test.jsp output:

  | principal: qwe
  | class: org.jboss.security.SimplePrincipal
  | 
I use JBOSS+tomcat but if check principals in EJB - result is the same...:(

Please help me to find out a mistake!:)

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

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


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