<?xml version='1.0' encoding='UTF-8'?>
<!--  See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config>
   <extension-module>org.jboss.as.security</extension-module>
   <subsystem xmlns="urn:jboss:domain:security:1.2">
       <security-domains>
           <security-domain name="other" cache-type="default">
               <authentication>
                   <login-module code="Remoting" flag="optional">
                       <module-option name="password-stacking" value="useFirstPass"/>
                   </login-module>
                   <login-module code="RealmDirect" flag="required">
                       <module-option name="password-stacking" value="useFirstPass"/>
                   </login-module>
               </authentication>
           </security-domain>
           <security-domain name="jboss-web-policy" cache-type="default">
               <authorization>
                   <policy-module code="Delegating" flag="required"/>
               </authorization>
           </security-domain>
       </security-domains>
   </subsystem>
   <supplement name="standalone">
      <replacement placeholder="@@realm-users-roles-users@@" attributeValue="${jboss.server.config.dir}/application-users.properties"/>
      <replacement placeholder="@@realm-users-roles-roles@@" attributeValue="${jboss.server.config.dir}/application-roles.properties"/>
   </supplement>
   <supplement name="domain">
      <replacement placeholder="@@realm-users-roles-users@@" attributeValue="${jboss.domain.config.dir}/application-users.properties"/>
      <replacement placeholder="@@realm-users-roles-roles@@" attributeValue="${jboss.domain.config.dir}/application-roles.properties"/>
   </supplement>
</config>