This content has been marked as final.
Show 2 replies
-
1. Re: UsersRolesLoginModule now requires files to be included in app ?
jaikiran Jul 18, 2011 12:00 AM (in response to dmison)UsersRolesLoginModule has always looked for the properties file in the classpath. In previous versions of AS, the JBOSS_HOME/server/<servername>/conf was on classpath, so you could put your properties there. In AS7 there is no such place, hence you need to package them within the application which makes it available in the classpath.
-
2. Re: Re: UsersRolesLoginModule now requires files to be included in app ?
etsauer Jun 12, 2014 3:25 PM (in response to jaikiran)I see this is an old post, but since I came across it while troubleshooting a similar issue...
You can alternatively specify a properties file absolute path using the 'file://' notation. For example, my security domains look something like:
<security-domain name="JBossWS" cache-type="default"> <authentication> <login-module code="UsersRoles" flag="required"> <module-option name="usersProperties" value="file://${jboss.server.config.dir}/jbossws-users.properties"/> <module-option name="rolesProperties" value="file://${jboss.server.config.dir}/jbossws-roles.properties"/> <module-option name="unauthenticatedIdentity" value="anonymous"/> </login-module> </authentication> </security-domain>