<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style><style type="text/css"><!----></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello all,
<div><br>
</div>
<div>I set up an IdP and SP in an ad-hoc network using the latest Shibboleth providers versions. My IdP is running within Tomcat 6 and my SP within IIS7. &nbsp;I faked everything properly and also configured well local hostnames resolution so that each server can
 be accessible from each other through http and https.&nbsp;</div>
<div>SP hostname:&nbsp;ans.247lib.com</div>
<div>IdP hostname:&nbsp;amlib.co.uk<br>
<div><br>
</div>
<div>When it came to get IDP and SP talk each other after configuring the relying-party.xml and shibboleth2.xml files as indicated in the Shibboleth wiki pages, I first encountered the following problem: &quot;Error decoding authentication request message&quot; when
 trying to browse &nbsp;<a href="https://ans.247.com/secure." target="_blank">https://ans.247.com/secure.</a>&nbsp;It looks like the authentication request is sent to the Idp, but no authentication response since the url I get back for the above error message is&nbsp;<a href="https://amlib.co.uk:8443/idp/profile/SAML2/Redirect/SSO" target="_blank">https://amlib.co.uk:8443/idp/profile/SAML2/Redirect/SSO</a>&nbsp;.
 When I also looked at the shibd log, I could read &nbsp;&quot;no metadata found, can't establish identity of issuer (https://amlib.co.uk/idp:8443/shibboleth)&quot;. &nbsp;I thought that it was an issue at the level of metadata configuration in Shibboleth2.xml file.</div>
<div><br>
</div>
<div>I therefore modified a bit the metadata element in Shibboleth2.xml, the error message is now &nbsp;<span style="font-family: 'Times New Roman'; font-size: medium;">opensaml::FatalProfileException at (http://ans.247lib.com/Shibboleth.sso/SAML2/POST)</span>
<p style="font-family: 'Times New Roman'; font-size: medium;">SAML response contained an error.</p>
<p style="font-family: 'Times New Roman'; font-size: medium;">Error from identity provider:</p>
<blockquote style="font-family: 'Times New Roman'; font-size: medium;"><strong>Status:</strong>&nbsp;urn:oasis:names:tc:SAML:2.0:status:Responder<br>
<strong>Sub-Status:</strong>&nbsp;urn:oasis:names:tc:SAML:2.0:status:AuthnFailed</blockquote>
<h1 style="font-family: 'Times New Roman';"><span style="font-weight: normal;"><font size="3">Note: My metadata elements configuration are as below:</font></span></h1>
<div><font size="3" face="Times New Roman"><b>For Shibboleth2.xml:</b></font></div>
<div><font size="3" face="Times New Roman"><br>
</font></div>
<div>
<div><font size="3" face="Times New Roman">&lt;MetadataProvider type=&quot;XML&quot; uri=&quot;http://amlib.co.uk:8080/idp/profile/Metadata/SAML&quot;</font></div>
<div><font size="3" face="Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; backingFilePath=&quot;idp-metadata.xml&quot; reloadInterval=&quot;7200&quot;&gt;</font></div>
<div><font size="3" face="Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/MetadataProvider&gt;</font></div>
<div><font size="3" face="Times New Roman"><br>
</font></div>
</div>
<div><font size="3" face="Times New Roman"><b>For Relying-party:</b></font></div>
<div>
<div><font size="3" face="Times New Roman">&lt;MetadataProvider xsi:type=&quot;ChainingMetadataProvider&quot; xmlns=&quot;urn:mace:shibboleth:2.0:metadata&quot;</font></div>
<div><font size="3" face="Times New Roman"><span class="Apple-tab-span" style="white-space:pre"></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id=&quot;ShibbolethMetadata&quot;&gt;</font></div>
<div><font size="3" face="Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &lt;MetadataProvider xsi:type=&quot;FileBackedHTTPMetadataProvider&quot;&nbsp;</font></div>
<div><font size="3" face="Times New Roman"><span class="Apple-tab-span" style="white-space:pre"></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id=&quot;AnsMetadata&quot;</font></div>
<div><font size="3" face="Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;metadataURL=&quot;http://ans.247lib.com/Shibboleth.sso/Metadata&quot;</font></div>
<div><font size="3" face="Times New Roman">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;backingFile=&quot;C:\IDP\metadata\some-metadata.xml&quot; /&gt;&nbsp;</font></div>
<div><font size="3" face="Times New Roman">&lt;/MetadataProvider&gt;</font></div>
</div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<p><br>
</p>
<p>Kindly help please&nbsp;</p>
<p><br>
</p>
<p>&nbsp;</p>
<p>Kind regards</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><font color="#333333" face="Arial">Gilles Rubens Badouet</font></p>
<p><font color="#333333" face="Arial">Student ID: 3940347</font></p>
<p><font color="#333333" face="Arial">Faculty of Engineering and Computing</font></p>
<p><font color="#333333" face="Arial">MSc Network Computing Course</font></p>
<p><font color="#333333" face="Arial">Mobile: 07424486426</font></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>