-
1. Re: Tomcat MemoryRealm
anil.saldhana Dec 26, 2006 5:12 PM (in response to justin_sane)Just provide two properties files under the conf directory.
users.properties
the following format:
username=passwd
roles.properties
username=role1,role2
Tell me if that works. -
2. Re: Tomcat MemoryRealm
justin_sane Dec 27, 2006 5:16 AM (in response to justin_sane)And how do I define the realm?
In jboss\server\default\conf\login-config.xml, like:
<application-policy name="userDatabase">
<login-module code="org.apache.catalina.users.MemoryUserDatabaseFactory" flag="required">
<module-option name="usersProperties">props/users.properties</module-option>
<module-option name="rolesProperties">props/roles.properties</module-option>
</login-module>
</application-policy>
Or just copy/past what I had in conf/server.xml in Tomcat alone? -
3. Re: Tomcat MemoryRealm
anil.saldhana Dec 27, 2006 2:56 PM (in response to justin_sane)You do not have to define anything. Basically the security domain defaults to "other" which has a UserRolesLoginModule which by default looks for these properties files.