On several machines we use a general SimpleSAMLphp instance that acts
as the SP for multiple web sites.
In our IdP we therefore have to add the metadata for all those web sites.
However, because the metadata file itself is PHP code, you can limit
the amount of work by wrapping a foreach loop around the metadata.
<?php
foreach(array('
tnc2011.terena.org', '
tnc2012.terena.org',
'
tnc2013.terena.org', '
tnc2014.terena.org', '
tnc15.terena.org') as $v)
{
$metadata["https://$v/simplesaml/module.php/saml/sp/metadata.php/default-sp"]
= array (
'AssertionConsumerService' =>
"https://$v/simplesaml/module.php/saml/sp/saml2-acs.php/default-sp",
'SingleLogoutService' =>
"https://$v/simplesaml/module.php/saml/sp/saml2-logout.php/default-sp",
'authproc' => array(
etc etc
It's not perfect in the sense that it is not a wild card solution, but
it greatly reduces the amount of work when you want to add a new SP.
Now it's a matter of just adding one entry to the array.
Dick
--
Dick Visser
Sr. System & Networking Engineer
TERENA Secretariat
Singel 468 D, 1017 AW Amsterdam
The Netherlands