anchor.diff:      <% @relyingparties.each do |rp|
            if rp.has_key?("provider") and node["shibboleth_idp"]["override_providers"].include?(rp["provider"])
              provider = rp["provider"]
  -           rp["entityids"].each do |entityid|
  +           pconf = {
  +             "SAML2SSOProfile" => {},
  +             "ShibbolethSSOProfile" => {},
  +             "SAML1AttributeQueryProfile" => {},
  +             "SAML1ArtifactResolutionProfile" => {}
  +           }
  +         elsif rp.has_key?("profile_configuration")
  +           provider = defprovider
  +           pconf = rp["profile_configuration"]
  +         else
  +           next
  +         end
  +
  +         rp["entityids"].each do |entityid|
       -%>
       <rp:RelyingParty id="<%= entityid %>"
        provider="<%= provider %>"
        defaultSigningCredentialRef="IdPCredential">
  -      <rp:ProfileConfiguration xsi:type="saml:SAML2SSOProfile"/>
  -      <rp:ProfileConfiguration xsi:type="saml:ShibbolethSSOProfile"/>
  -      <rp:ProfileConfiguration xsi:type="saml:SAML1AttributeQueryProfile"/>
  -      <rp:ProfileConfiguration xsi:type="saml:SAML1ArtifactResolutionProfile"/>
  +      <% pconf.each do |profile, conf| -%>
  +        <rp:ProfileConfiguration xsi:type="saml:<%= profile %>"
  +        <% conf.each do |key, value| -%>
  +          <%= key %>="<%= value %>"
  +        <% end -%>
  +        />
  +      <% end -%>
       </rp:RelyingParty>
  -    <%     end
  -         end
  +    <%   end
          end -%>
       
       <!-- ========================================== -->
  
positive.code: 
        <% @remotemetadata.each do |name,url| -%>
          <metadata:MetadataProvider xsi:type="FileBackedHTTPMetadataProvider" xmlns="urn:mace:shibboleth:2.0:metadata"
            id="<%= name %>"
            metadataURL="<%= url %>"
            backingFile="<%= node["shibboleth_idp"]["home"] %>/metadata/<%= name %>-metadata.xml">
          </metadata:MetadataProvider>
  
negative.code:              next if not file =~ /.*\.xml$/
          -%>
          <metadata:MetadataProvider xsi:type="FilesystemMetadataProvider" xmlns="urn:mace:shibboleth:2.0:metadata"
              id="_<%= File.basename(file, ".xml") %>"
              metadataFile="<%= dir %>/<%= file %>" />
          <% end -%>
        <% end -%>
  