jboss 4: enable UsersRolesLoginModule, where must users.properties files be placed?

Posted by golemwashere on Server Fault See other posts from Server Fault or by golemwashere
Published on 2009-10-13T22:03:30Z Indexed on 2010/03/19 11:21 UTC
Read the original article Hit count: 399

Filed under:
|

I have an application (CQ5) that requires enabling unauthenticatedIdentity on jbossdir/conf/login-config.xml I used:

   <authentication>
      <login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule"
         flag = "required" >
      <module-option name="unauthenticatedIdentity">nobody</module-option>
    </login-module>
   </authentication>

then I tried to copy jbossdir/conf/props/jmx-console-users.properties,jmx-console-roles.properties into users.properties and roles.properies (same dir).

I still get this error:

ERROR [org.jboss.security.auth.spi.UsersRolesLoginModule] Failed to load users/passwords/role files java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found

where should I put those files?

© Server Fault or respective owner

Related posts about jboss

Related posts about authentication