Created
January 16, 2013 19:19
-
-
Save zbigniewTomczak/4549921 to your computer and use it in GitHub Desktop.
Jboss AS 7.1.1 database login module configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<security-domain name="other" cache-type="default"> | |
<authentication> | |
<login-module code="Remoting" flag="required"> | |
<module-option name="password-stacking" value="useFirstPass"/> | |
</login-module> | |
<login-module code="RealmUsersRoles" flag="sufficient"> | |
<module-option name="usersProperties" value="${jboss.server.config.dir}/application-users.properties"/> | |
<module-option name="rolesProperties" value="${jboss.server.config.dir}/application-roles.properties"/> | |
<module-option name="realm" value="ApplicationRealm"/> | |
<module-option name="password-stacking" value="useFirstPass"/> | |
</login-module> | |
<login-module code="Database" flag="sufficient"> | |
<module-option name="dsJndiName" value="java:jboss/datasources/ProductBacklogTestDS"/> | |
<module-option name="principalsQuery" value="select password from User where email=?"/> | |
<module-option name="realm" value="DatabaseRealm"/> | |
<module-option name="hashAlgorithm" value="SHA-512"/> | |
<module-option name="hashEncoding" value="HEX"/> | |
<module-option name="hashUserPassword" value="true"/> | |
</login-module> | |
</authentication> | |
</security-domain> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment