Sunday, January 29, 2012

Adding Security Domain in JBOSS

if you need to use a specific authentication system, then you need to specify it in jboss as below



java:/jaas/jmx-console



here I have configured it to /jaas/jmx-console. that is the application policy defined for jmx console. It has been defined in server/default/conf/login-config.xml as below




props/jmx-console-users.properties
props/jmx-console-roles.properties

Writing Client

In jboss 5.1 I was able to login with following
// SecurityClient client = SecurityClientFactory.getSecurityClient();
// client.setSimple("admin", "admin");
// client.setSimple("chan", "abc");
// client.login();

But in jboss 6 that didn't work. But adding user name and password to jndi.properties as below, I was able to login to the system.

java.naming.security.principal=chan
java.naming.security.credentials=abc


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home