views:

538

answers:

1

I am working with a piece of code implementing JAAS LoginModule and in the commit method I set the principal with user UUID:

subject.getPrincipals().add(new SimplePrincipal(userUUID)

But for some reason when I access the user from EJB Context:

context.getCallerPrincipal().getName()

I receive the login name of the user instead of the userUUID I was expecting.

Should I implement custom principal or how to solve this?

Thank you!

A: 

Could be a JBoss 5 bug after all: https://jira.jboss.org/jira/browse/EJBTHREE-1756

Fixed 11. Feb 2010, now waiting a next JBoss release :-)

Petteri Hietavirta