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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to