[jboss-user] [Security & JAAS/JBoss] - Re: different security domain i servlet init method (deploy

Wolfgang Knauf do-not-reply at jboss.com
Thu Feb 19 06:20:20 EST 2009


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



More information about the jboss-user mailing list