A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Products
»
JBoss/WildFly
Author
Connection to 2 databases - Failed to load users/passwords/role files
San-Yih Pan
Greenhorn
Joined: Nov 04, 2004
Posts: 19
posted
Jun 06, 2012 11:50:59
0
Hi,
I went through
http://www.coderanch.com/t/90486/JBoss/Failed-load-users-passwords-role
but have one question.
How to put 2 <security-domain> in "jboss-web.xml" because of 2 databases?
My login-config.xml is as follows:
<application-policy name="oracleds1">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag="required">
<module-option name="usersProperties">props/oracleds1-users.properties</module-option>
<module-option name="rolesProperties">props/oracleds1-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
<application-policy name="oracleds2">
<authentication>
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
flag="required">
<module-option name="usersProperties">props/oracleds2-users.properties</module-option>
<module-option name="rolesProperties">props/oracleds2-roles.properties</module-option>
</login-module>
</authentication>
</application-policy>
Peter Johnson
author
Bartender
Joined: May 14, 2008
Posts: 5579
I like...
posted
Jun 06, 2012 14:10:22
0
You need to create a third application-policy which chains those two application policies together (just add the two <authentication> entries ), and then reference that one policy in jboss-web.xml. This should help:
http://docs.jboss.org/jbosssecurity/docs/6.0/security_guide/html/Login_Modules.html
JBoss In Action
I agree. Here's the link:
http://aspose.com/file-tools
subject: Connection to 2 databases - Failed to load users/passwords/role files
Similar Threads
how to add username , role , password to jboss the way we do in tomcat
how to add username , role , password to jboss the way we do in tomcat
unable to add web-console user/password authentication
cannot perform access control without an authenticated principal
Failed to load users/passwords/role files
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter