Hi,

env.setProperty(Context.SECURITY_PRINCIPAL, "system");
  | env.setProperty(Context.SECURITY_CREDENTIALS, "...");
  | 
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.security.jndi.JndiLoginInitialContextFactory");

does not work any more in JBoss 5 as far as I know.

Use this:
SecurityClient client = SecurityClientFactory.getSecurityClient();
  | client.setSimple("user", "mypass");
  | client.login()

(see http://www.jboss.org/index.html?module=bb&op=viewtopic&t=144021, third 
post)

Hope this helps

Wolfgang

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211414
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to