<div dir="ltr"><div><span style="font-family:courier new,monospace">Hi everyone. I&#39;m new to the user list. I&#39;m trying to set up a federation in my country; I&#39;ve succesfully installed a test IdP and a test SP (with embedded DS)... but I&#39;m having problems setting up a centralized discovery service.<br>
<br>My IdP and my SP work fine with each other, either directly or with the embedded DS.<br><br>I&#39;ve set up the CDS on a Ubuntu 14.04 virtual server. The installation procedure was very similar to the the IdP. I set a federation XML available there, with only my IdP&#39;s and SP&#39;s. Here it is (trimmed for space reasons, I can post it complete to a PasteBin-like site if necessary):<br>
<br>&lt;EntitiesDescriptor Name=&quot;<a href="https://cdsserver.inca.net.pe/metadata/inca-federation.xml">https://cdsserver.inca.net.pe/metadata/inca-federation.xml</a>&quot;<br>    xmlns=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;<br>
    xmlns:ds=&quot;<a href="http://www.w3.org/2000/09/xmldsig#">http://www.w3.org/2000/09/xmldsig#</a>&quot;<br>    xmlns:shibmd=&quot;urn:mace:shibboleth:metadata:1.0&quot;<br>    xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
    &lt;!-- Actual providers go here.  --&gt;<br>    &lt;!-- Start: <a href="http://idpserver.entidad.edu.pe">idpserver.entidad.edu.pe</a> --&gt;<br>    &lt;EntityDescriptor xmlns=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;<br>
        entityID=&quot;<a href="https://idpserver.entidad.edu.pe/idp/shibboleth">https://idpserver.entidad.edu.pe/idp/shibboleth</a>&quot;<br></span></div><span style="font-family:courier new,monospace">        [TRIMMED]<br>
</span><div><span style="font-family:courier new,monospace">    &lt;/EntityDescriptor&gt;<br>    &lt;!-- End: <a href="http://idpserver.entidad.edu.pe">idpserver.entidad.edu.pe</a> --&gt;<br>    &lt;!-- Start: <a href="http://idp.instituto.edu.pe">idp.instituto.edu.pe</a>  --&gt;<br>
    &lt;EntityDescriptor xmlns=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;<br>        entityID=&quot;<a href="https://idp.instituto.edu.pe/idp/shibboleth">https://idp.instituto.edu.pe/idp/shibboleth</a>&quot;<br></span></div>
<div><span style="font-family:courier new,monospace">        [TRIMMED]<br></span></div><div><span style="font-family:courier new,monospace">    &lt;/EntityDescriptor&gt;<br>    &lt;!-- End: <a href="http://idp.instituto.edu.pe">idp.instituto.edu.pe</a> --&gt;<br>
    &lt;!-- Start: <a href="http://spserver.redprivada.com.pe">spserver.redprivada.com.pe</a> --&gt;<br>    &lt;md:EntityDescriptor xmlns:md=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;<br>        ID=&quot;_2f88be8f2520ab67291aa6e18c80c1e3c015bcdf&quot;<br>
        entityID=&quot;<a href="https://spserver.redprivada.com.pe/shibboleth">https://spserver.redprivada.com.pe/shibboleth</a>&quot;&gt;<br>        </span><span style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">[TRIMMED]<br>
</span>    &lt;/md:EntityDescriptor&gt;<br>    &lt;!-- End: <a href="http://spserver.redprivada.com.pe">spserver.redprivada.com.pe</a>  --&gt;<br>&lt;/EntitiesDescriptor&gt;<br><br>Here&#39;s the content of the wayfconfig.xml file:<br>
<br>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;WayfConfig xmlns=&quot;urn:mace:shibboleth:wayf:config:1.0&quot;<br>    xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br>
    &lt;Default jspFile=&quot;wayf.jsp&quot;<br>        errorJspFile=&quot;wayferror.jsp&quot;<br>        provideList=&quot;true&quot;<br>        provideListOfList=&quot;false&quot;<br>        warnOnBadBinding=&quot;false&quot;<br>
        warnOnNoSAML2=&quot;false&quot;<br>        showUnusableIdPs=&quot;false&quot;&gt;<br>        &lt;SearchIgnore&gt;<br>            &lt;IgnoreText&gt;Institution&lt;/IgnoreText&gt;<br>            &lt;IgnoreText&gt;University&lt;/IgnoreText&gt;<br>
            &lt;IgnoreText&gt;State &lt;/IgnoreText&gt;<br>            &lt;IgnoreText&gt;School&lt;/IgnoreText&gt;<br>        &lt;/SearchIgnore&gt;<br>    &lt;/Default&gt;<br>        &lt;MetadataProvider<br>        displayName=&quot;IDP Classic&quot;<br>
        identifier=&quot;<a href="https://idpserver.entidad.edu.pe">https://idpserver.entidad.edu.pe</a>&quot;<br>        backingFile=&quot;/opt/shibboleth-ds/metadata/idpserver.entidad.edu.pe-metadata.xml&quot;<br>        url=&quot;<a href="https://idpserver.entidad.edu.pe/idp/profile/Metadata/SAML">https://idpserver.entidad.edu.pe/idp/profile/Metadata/SAML</a>&quot;/&gt;<br>
        &lt;MetadataProvider<br>        displayName=&quot;SP Classic&quot;<br>        identifier=&quot;<a href="https://spserver.redprivada.com.pe">https://spserver.redprivada.com.pe</a>&quot;<br>        url=&quot;file:/opt/shibboleth-ds/metadata/spserver.redprivada.com.pe-metadata.xml&quot;/&gt;<br>
    &lt;Plugin identifier=&quot;CookiePlugin&quot;<br>        type=&quot;edu.internet2.middleware.shibboleth.wayf.plugins.provider.SamlCookiePlugin&quot;<br>        alwaysFollow=&quot;FALSE&quot;<br>        deleteCookie=&quot;FALSE&quot;<br>
        cacheExpiration=&quot;604800&quot;/&gt;<br>    &lt;Plugin identifier=&quot;DeleteCookiePlugin&quot;<br>        type=&quot;edu.internet2.middleware.shibboleth.wayf.plugins.provider.SamlCookiePlugin&quot;<br>        alwaysFollow=&quot;FALSE&quot;<br>
        deleteCookie=&quot;TRUE&quot;<br>        cacheExpiration=&quot;604800&quot;/&gt;<br>    &lt;DiscoveryServiceHandler location=&quot;.+/WAYF&quot; default=&quot;true&quot;&gt;<br>        &lt;PluginInstance identifier=&quot;CookiePlugin&quot;/&gt;<br>
    &lt;/DiscoveryServiceHandler&gt;<br>    &lt;DiscoveryServiceHandler location=&quot;.+/ClearCache.wayf&quot;&gt;<br>        &lt;PluginInstance identifier=&quot;DeleteCookiePlugin&quot;/&gt;<br>    &lt;/DiscoveryServiceHandler&gt;<br>
&lt;/WayfConfig&gt;<br><br>Now, on the side of the SP, this is the content of the shibboleth2.xml file:<br><br>&lt;SPConfig xmlns=&quot;urn:mace:shibboleth:2.0:native:sp:config&quot;<br>        xmlns:conf=&quot;urn:mace:shibboleth:2.0:native:sp:config&quot;<br>
        xmlns:saml=&quot;urn:oasis:names:tc:SAML:2.0:assertion&quot;<br>        xmlns:samlp=&quot;urn:oasis:names:tc:SAML:2.0:protocol&quot;<br>        xmlns:md=&quot;urn:oasis:names:tc:SAML:2.0:metadata&quot;<br>        clockSkew=&quot;180&quot;&gt;<br>
        &lt;ApplicationDefaults entityID=&quot;<a href="https://spserver.redprivada.com.pe/shibboleth">https://spserver.redprivada.com.pe/shibboleth</a>&quot;<br>                homeURL=&quot;<a href="https://spserver.redprivada.com.pe/Shibboleth.sso/Session">https://spserver.redprivada.com.pe/Shibboleth.sso/Session</a>&quot;<br>
                REMOTE_USER=&quot;eppn persistent-id targeted-id&quot;<br>                signing=&quot;back&quot;<br>                requireTransportAuth=&quot;false&quot;&gt;<br>                &lt;Sessions lifetime=&quot;28800&quot;<br>
                        timeout=&quot;3600&quot;<br>                        relayState=&quot;ss:mem&quot;<br>                        checkAddress=&quot;true&quot;<br>                        handlerSSL=&quot;true&quot;<br>
                        cookieProps=&quot;https&quot;&gt;<br>                        &lt;SSO discoveryProtocol=&quot;SAMLDS&quot;<br>                                discoveryURL=&quot;<a href="https://cdsserver.inca.net.pe/cds/index.htm">https://cdsserver.inca.net.pe/cds/index.htm</a>&quot;&gt;<br>
                                SAML2 SAML1<br>                        &lt;/SSO&gt;<br>                        &lt;Logout&gt;SAML2 Local&lt;/Logout&gt;<br>                        &lt;Handler type=&quot;MetadataGenerator&quot;<br>
                                Location=&quot;/Metadata&quot;<br>                                signing=&quot;false&quot;/&gt;<br>                        &lt;Handler type=&quot;Status&quot;<br>                                Location=&quot;/Status&quot;<br>
                                acl=&quot;127.0.0.1 ::1&quot;/&gt;<br>                        &lt;Handler type=&quot;Session&quot;<br>                                Location=&quot;/Session&quot;<br>                                showAttributeValues=&quot;false&quot;/&gt;<br>
                        &lt;Handler type=&quot;DiscoveryFeed&quot;<br>                                Location=&quot;/DiscoFeed&quot;/&gt;<br>                &lt;/Sessions&gt;<br>                &lt;Errors supportContact=&quot;root@localhost&quot;<br>
                        helpLocation=&quot;/about.html&quot;<br>                        styleSheet=&quot;/shibboleth-sp/main.css&quot;/&gt;<br>                &lt;MetadataProvider type=&quot;XML&quot;<br>                        validate=&quot;true&quot;<br>
                        uri=&quot;<a href="https://cdsserver.inca.net.pe/metadata/inca-federation.xml">https://cdsserver.inca.net.pe/metadata/inca-federation.xml</a>&quot;<br>                        backingFilePath=&quot;/etc/shibboleth/metadata/inca-federation.xml&quot;<br>
                        reloadInterval=&quot;3600&quot;&gt;<br>                        &lt;MetadataFilter type=&quot;RequireValidUntil&quot;<br>                                maxValidityInterval=&quot;604800&quot;/&gt;<br>
                        &lt;MetadataFilter type=&quot;Signature&quot;<br>                                certificate=&quot;/etc/shibboleth/certificate-data/inca.crt&quot;/&gt;<br>                &lt;/MetadataProvider&gt;<br>
                &lt;AttributeExtractor type=&quot;XML&quot;<br>                        validate=&quot;true&quot;<br>                        reloadChanges=&quot;false&quot;<br>                        path=&quot;attribute-map.xml&quot;/&gt;<br>
                &lt;AttributeResolver type=&quot;Query&quot;<br>                        subjectMatch=&quot;true&quot;/&gt;<br>                &lt;AttributeFilter type=&quot;XML&quot;<br>                        validate=&quot;true&quot;<br>
                        path=&quot;attribute-policy.xml&quot;/&gt;<br>                &lt;CredentialResolver type=&quot;File&quot;<br>                        key=&quot;sp-key.pem&quot;<br>                        certificate=&quot;sp-cert.pem&quot;/&gt;<br>
        &lt;/ApplicationDefaults&gt;<br>        &lt;SecurityPolicyProvider type=&quot;XML&quot;<br>                validate=&quot;true&quot;<br>                path=&quot;security-policy.xml&quot;/&gt;<br>        &lt;ProtocolProvider type=&quot;XML&quot;<br>
                validate=&quot;true&quot;<br>                reloadChanges=&quot;false&quot;<br>                path=&quot;protocols.xml&quot;/&gt;<br>&lt;/SPConfig&gt;<br><br>When I try to access a Shibboleth-protected resource on my SP, a page from the CDS server comes up saying:<br>
<br>Inter-institutional Access System Failure<br><br>The inter-institutional access system experienced a technical failure.<br><br>Please email administrator&#39;s name and include the following error message:<br><br>The Discovery Service should not be called directly<br>
<br>All my logs are set to &quot;DEBUG&quot;, but I can&#39;t find anything on them pointing me to an error, neither from the SP side, nor the CDS side. I&#39;m sure I&#39;m doing something wrong, overlooking something... please, help me. Thanks in advance.<br>
</span></div></div>