[jboss-user] [Security & JAAS/JBoss] - Re: EJB3 SSL remote connection from swing client application

Wolfgang Knauf do-not-reply at jboss.com
Thu Dec 13 08:35:38 EST 2007


Hi !

I think you need to change your InitialContextFactory to:

java.naming.factory.initial=org.jboss.security.jndi.JndiLoginInitialContextFactory

Otherwise, your login credentials are not honoured.

You might also do something like this to explicitly login:

    org.jboss.security.auth.callback.AppCallbackHandler callbackHandler = new AppCallbackHandler("test", "test".toCharArray() );
  |     LoginContext loginContext = new LoginContext ("....", callbackHandler);
  |     loginContext.login();

Hope this helps

Wolfgang

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

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



More information about the jboss-user mailing list