Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. <subsystem xmlns="urn:jboss:domain:security:1.2">
  2. <security-domains>
  3. <security-domain name="NewsSD">
  4. <authentication>
  5. <login-module code="Database" flag="required">
  6. <module-option name="dsJndiName" value="java:jboss/datasources/NewsDS"/>
  7. <module-option name="principalsQuery" value="SELECT password AS 'Password' FROM t_user WHERE username = ?"/>
  8. <module-option name="rolesQuery" value="SELECT r.rolename, 'Roles' FROM t_user u INNER JOIN t_user_role ur ON u.userid = ur.userid INNER JOIN t_role r ON ur.roleid = r.roleid WHERE u.username = ?"/>
  9. <module-option name="hashAlgorithm" value="SHA-512"/>
  10. <module-option name="hashEncoding" value="hex"/>
  11. </login-module>
  12. </authentication>
  13. </security-domain>
  14. <security-domain name="other" cache-type="default">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement