Advertisement
Guest User

Configuring JAAS in pom.xml using jboss-as-maven-plugin

a guest
Sep 14th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.82 KB | None | 0 0
  1. <execution>
  2.     <phase>install</phase>
  3.     <goals>
  4.         <goal>execute-commands</goal>
  5.     </goals>
  6.     <configuration>
  7.         <hostname>localhost</hostname>
  8.         <port>9999</port>
  9.         <executeCommands>
  10.             <commands>
  11.                 <command>
  12.                     /subsystem=security/security-domain=coomtablet-security-domain/:add(cache-type=default)
  13.                 </command>
  14.                 <command>
  15.                     /subsystem=security/security-domain=coomtablet-security-domain/
  16.                     authentication=classic:add(login-modules=[{
  17.                     "code"=>"org.jboss.security.auth.spi.DatabaseServerLoginModule",
  18.                     "flag"=>"required","module-options"=>[("dsJndiName"=>"MySqlDS"),
  19.                     ("principalsQuery"=>"select password from USER where username=?"),
  20.                     ("rolesQuery"=>"select role, 'Roles' from USER u where u.username=?")]}])
  21.                 </command>
  22.             </commands>
  23.         </executeCommands>
  24.     </configuration>
  25. </execution>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement