<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Pavan,<div><br></div><div>You're making good progress on a somewhat customized installation. &nbsp;There are a couple mis-steps, though.</div><div><br><div><blockquote type="cite">My identity provider "entityId" is : <b>http://&lt;machineA&gt;:8080/idp/shibboleth</b> and the metadata is accesible by using that URL.<br></blockquote><div><br></div><div>Putting a port in an entityID is not usually recommended, but you can do it. &nbsp;Also, metadata should be signed if it's hosted over http -- but this is fine for a test deployment.</div><br><blockquote type="cite">After installing the Service provider, I modified "shibboleth2.xml" with the following changes,<br><br>Modified service provider "entityId" to <b>"http://&lt;machineB&gt;/sp/shibboleth"</b> in "&lt;ApplicationDefaults" xml tag.<br> <br>Added SSO:<br><br><b>&lt;SSO entityID="http://&lt;machineA&gt;:8080/idp/shibboleth"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SAML2 SAML1<br>&lt;/SSO&gt;<br></b></blockquote><div><br></div><div>This is all fine.</div><br><blockquote type="cite">Added metadata provider:<br><br><b>&nbsp;&lt;MetadataProvider type="Chaining"&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;MetadataProvider type="XML" uri="http://&lt;machineA&gt;:8080/idp/shibboleth"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; backingFilePath="federation-metadata.xml" reloadInterval="7200"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;MetadataFilter type="RequireValidUntil" maxValidityInterval="2419200"/&gt;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/MetadataProvider&gt;<br>&lt;/MetadataProvider&gt; <br></b></blockquote><div><br></div><div>This should be okay, too.</div><br><blockquote type="cite">And i modified identity provider "relying-party.xml" file with the following changes,<br><br><b>&nbsp;&nbsp; &lt;rp:AnonymousRelyingParty provider="http://&lt;machineB&gt;/sp/shibboleth" defaultSigningCredentialRef="IdPCredential"/&gt;<br> &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &lt;rp:DefaultRelyingParty provider="http://&lt;machineB&gt;/sp/shibboleth" defaultSigningCredentialRef="IdPCredential"&gt;</b><br></blockquote><div><br></div><div>This is not correct. &nbsp;The provider attribute in these elements in relying-party.xml refers to the entityID that the IdP will use to name itself when it is talking to relying parties. &nbsp;This should be http://&lt;machineA&gt;:8080/idp/shibboleth, which should match the original values.</div><div><br></div><div>These properties were really hard to name right, and obviously, the current names confused you.</div><br><blockquote type="cite">After these changes i have restarted identity provider, services provider and apache services. I am trying to hit the url; <b>"http://&lt;machineB&gt;/Shibboleth.sso/Login"</b><br> <br><br>I am getting the following error:<br><p class="error"><b>opensaml::saml2md::MetadataException at (http://&lt;machineB&gt;/Shibboleth.sso/Login)</b></p><p><b>Unable to locate metadata for identity provider (http://&lt;machineA&gt;:8080/idp/shibboleth)</b></p></blockquote><div><br></div><div>Either the metadata for the identity provider isn't being loaded correctly, or the entityID in the metadata file doesn't match&nbsp;http://&lt;machineA&gt;:8080/idp/shibboleth. &nbsp;There needs to be an entityID in metadata loaded by the SP that precisely matches the IdP's configured entityID, and the entityID in the SSO element has to be a string match of that entityID too. &nbsp;You can check shibd.log during startup and login attempt to determine where the mismatch is.</div><div><br></div><div>That will fix this problem. &nbsp;You may encounter other problems after you resolve this one.</div><div><br></div><div>Take care,</div><div>Nate.</div></div><br></div></body></html>