-
1. Re: MDB and Security
exchen May 16, 2003 3:51 PM (in response to dschalle)I have a similar setup using JBoss_3.2.1-Tomcat_4.1.24, a MDB --> Session Bean invocation. My Session Bean is configured with a security realm. Tried run-as, LoginContext().login, etc. Nothing seemed to work, keep getting back principal=null. I'm not sure whether it's my configuration problem or jBoss bug, does anyone have a solution?
Thanks -
2. Re: MDB and Security
exchen May 16, 2003 3:52 PM (in response to dschalle)I have a similar setup using JBoss_3.2.1-Tomcat_4.1.24, a MDB --> Session Bean invocation. My Session Bean is configured with a security realm. Tried run-as, LoginContext().login, etc. Nothing seemed to work, keep getting back principal=null. I'm not sure whether it's my configuration problem or jBoss bug, does anyone have a solution?
Thanks -
3. Re: MDB and Security
exchen May 19, 2003 11:14 AM (in response to dschalle)Problem resolved, the trick is to add unauthenticatedIdentity support in login-config.xml
i.e.
<application-policy name = "AMPRealm">
<login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag = "required">
<module-option name="unauthenticatedIdentity">guest</module-option>
.....