3 Replies Latest reply on Sep 9, 2004 10:40 AM by cobraflow

    *.properties not found in conf/ with UsersRolesLoginModule

    pilhuhn

      On JBoss 3.2.3.
      I have a webapp that uses the UsersRolesLoginModule. when users.properties and roles.properties are in WEB-INF/classes, everything is fine.
      When I remove the files from there and put them in $SERVER/conf , authentication always fails despite the fact tha the docu and the comments in the source tell me that this should work.
      Any ideas?

        • 1. Re: *.properties not found in conf/ with UsersRolesLoginModu
          pilhuhn

          Ok, nevermind.
          After rebooting(*), the server behaved as it should.

          (*) This is on Win2k. I only rebooted, because Explorer was crashing and the task bar disapeared completely along with the icons on the desktop.

          • 2. Re: *.properties not found in conf/ with UsersRolesLoginModu
            starksm64

            Placing the properties files in the conf directory will work. However, if there are multiple users of the UsersRolesLoginModule and they are all using the same properties file names, you can end up looking at another set of properties files if the deployment containing these files is not scoped. Its best to ensure unique names using the usersProperties and rolesProperties options:

             <application-policy name = "jmx-console">
             <authentication>
             <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
             flag = "required">
             <module-option name="usersProperties">jmx-console-users.properties</module-option>
             <module-option name="rolesProperties">jmx-console-roles.properties</module-option>
             </login-module>
             </authentication>
             </application-policy>
            



            • 3. Re: *.properties not found in conf/ with UsersRolesLoginModu
              cobraflow

              Just a side issue. I just installed 3.2.5 and found that server\default\deploy\http-invoker.sar\invoker.war\WEB-INF\classes contains users.properties and roles.properties files so that just putting then into conf no longer works!