Hi!
I'm have made a custom login module and principal. I'm trying to test the loginmodule using a test EJB and client.
The client logs in using the standard ClientLoginModule and tries to access a method in my EJB that calls ctx.getCallerPrincipal() when the following error occurs:
2002-11-18 11:17:40,004 ERROR [org.jboss.ejb.plugins.SecurityInterceptor] Authentication exception, principal=user
2002-11-18 11:17:40,005 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException, causedBy:
java.lang.SecurityException: Authentication exception, principal=user
at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:173)
at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:94)
at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300)
I packaged the test EJB, login module and principal into a JAR file with the following config files:
jboss.xml:
<security-domain>java:/jaas/MyLogin</security-domain>
login-config.xml:
<application-policy name = "MyLogin">
<login-module code = "MyLoginModule"
flag = "required" />
</application-policy>
Since I'm new to JBoss I guess I'm missing something basic here ?
Thanks for any help!
Anders
Should have read the docs before posting this I guess. Didn't realize how to deploy loginmodules correctly. The login-config.xml should be deployed with the login-module.
Anders