I have developed some utility programs that are able to run as stand alone Java
clients against my application and use LoginInitialContextFactory to provide their
principal and credential information.
However, When I try to start these utility programs from a Scheduler task (basically
just launches the utilities in a new Thread), authentication is not performed
correctly and I get:
java.rmi.ServerException: EJBException:; nested exception is:
| javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
| Authentication exception, principal=null
Does anyone have any ideas on why authentication works correctly for standalone
clients but doesn't for my Scheduler launched ones?
Here are my jndi.properties:
java.naming.factory.initial=org.jboss.security.jndi.LoginInitialContextFactory
| java.naming.provider.url=jnp://localhost:1099
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| java.naming.security.protocol=JIS
| java.naming.security.principal=systemservice
| java.naming.security.credentials=XXXXXX
Here is my client-auth.conf:
JIS {
| // jBoss LoginModule
| org.jboss.security.ClientLoginModule required
| ;
| };
Here is the application policy from login-config.xml:
<application-policy name = "JIS">
| <authentication>
| <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
| flag = "required" />
| <login-module code = "org.jboss.security.ClientLoginModule"
| flag = "required" />
| </authentication>
| </application-policy>
Thanks
--jason
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3832385#3832385
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3832385
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development