<config default-supplement="default">
   <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>
           <?ADDITIONAL_SECURITY_DOMAINS?>
           <?messaging-domain?>
           <?picketlink-security-domains?>
       </security-domains>
   </subsystem>
   <supplement name="default">
       <replacement placeholder="ADDITIONAL_SECURITY_DOMAINS">
           <security-domain name="jboss-web-policy" cache-type="default">
               <authorization>
                   <policy-module code="Delegating" flag="required"/>
               </authorization>
           </security-domain>
           <security-domain name="jboss-ejb-policy" cache-type="default">
               <authorization>
                   <policy-module code="Delegating" flag="required"/>
               </authorization>
           </security-domain>
           <security-domain name="teiid-security" cache-type="default">
               <authentication>
                   <login-module code="RealmDirect" flag="required">
                      <module-option name="password-stacking" value="useFirstPass"/>
                   </login-module>
               </authentication>
           </security-domain>            
           <security-domain name="jaspitest" cache-type="default">
               <authentication-jaspi>
                   <login-module-stack name="dummy">
                       <login-module code="Dummy" flag="optional"/>
                   </login-module-stack>
                   <auth-module code="Dummy"/>
               </authentication-jaspi>
           </security-domain>
       </replacement>
   </supplement>
   <supplement name="picketlink">
       <replacement placeholder="picketlink-security-domains">
           <security-domain name="idp" cache-type="default">
               <authentication>
                   <login-module code="UsersRoles" flag="required">
                       <module-option name="usersProperties" value="users.properties"/>
                       <module-option name="rolesProperties" value="roles.properties"/>
                   </login-module>
               </authentication>
           </security-domain>
           <security-domain name="sp" cache-type="default">
               <authentication>
                   <login-module code="org.picketlink.identity.federation.bindings.jboss.auth.SAML2LoginModule" flag="required"/>
               </authentication>
           </security-domain>
       </replacement>
   </supplement>
   <supplement name="web-build"/>
 </config>
