-
1. Re: Don't want web realm named "other"
jmoring Oct 25, 2002 10:56 AM (in response to wwheeler1464)Do you have security roles defined in your web.xml? If so they must be returned by the UserRolesLoginModule.
HTH -
2. Re: Don't want web realm named "other"
mhnagaoka Oct 25, 2002 12:19 PM (in response to wwheeler1464)Where are your users and roles properties files?
My app is working OK, but, differently of you, I'm specifying other properties file names in login-config.xml and I'm placing this files in the root of my EAR file.
Here is a snippet of my login-config.xml:
<application-policy name = MyAppRealm">
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option name = "usersProperties">myapp.users</module-option>
<module-option name = "rolesProperties">myapp.roles</module-option>
</login-module>
</application-policy> -
3. Re: Don't want web realm named "other"
mhnagaoka Oct 25, 2002 12:21 PM (in response to wwheeler1464)Where are your users and roles properties files?
My app is working OK, but, differently of you, I'm specifying other properties file names in login-config.xml and I'm placing this files in the root of my EAR file.
Here is a snippet of my login-config.xml:
<application-policy name = MyAppRealm">
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option name = "usersProperties">myapp.users</module-option>
<module-option name = "rolesProperties">myapp.roles</module-option>
</login-module>
</application-policy> -
4. Re: Don't want web realm named "other"
mhnagaoka Oct 25, 2002 12:22 PM (in response to wwheeler1464)Where are your users and roles properties files?
My app is working OK, but, differently of you, I'm specifying other properties file names in login-config.xml and I'm placing this files in the root of my EAR file.
Here is a snippet of my login-config.xml:
<application-policy name = MyAppRealm">
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option name = "usersProperties">myapp.users</module-option>
<module-option name = "rolesProperties">myapp.roles</module-option>
</login-module>
</application-policy> -
5. Re: Don't want web realm named "other"
mhnagaoka Oct 25, 2002 12:23 PM (in response to wwheeler1464)Where are your users and roles properties files?
My app is working OK, but, differently of you, I'm specifying other properties file names in login-config.xml and I'm placing this files in the root of my EAR file.
Here is a snippet of my login-config.xml:
<application-policy name = MyAppRealm">
<login-module code = "org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option name = "usersProperties">myapp.users</module-option>
<module-option name = "rolesProperties">myapp.roles</module-option>
</login-module>
</application-policy> -
6. Re: Don't want web realm named "other"
wwheeler1464 Oct 27, 2002 7:05 PM (in response to wwheeler1464)Hi jmoring. I do have security roles defined in web.xml. What do you mean when you say that they must be returned by the UsersRolesLoginModule? AFAIK UsersRolesLoginModule just takes two module options: one called usersProperties (gives the name of the user file) and another called rolesProperties (gives the name of the role file). I have appropriate entries defined in users.properties and roles.properties.
Thanks,
Willie