Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <execution>
- <phase>install</phase>
- <goals>
- <goal>execute-commands</goal>
- </goals>
- <configuration>
- <hostname>localhost</hostname>
- <port>9999</port>
- <executeCommands>
- <commands>
- <command>
- /subsystem=security/security-domain=coomtablet-security-domain/:add(cache-type=default)
- </command>
- <command>
- /subsystem=security/security-domain=coomtablet-security-domain/
- authentication=classic:add(login-modules=[{
- "code"=>"org.jboss.security.auth.spi.DatabaseServerLoginModule",
- "flag"=>"required","module-options"=>[("dsJndiName"=>"MySqlDS"),
- ("principalsQuery"=>"select password from USER where username=?"),
- ("rolesQuery"=>"select role, 'Roles' from USER u where u.username=?")]}])
- </command>
- </commands>
- </executeCommands>
- </configuration>
- </execution>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement