<div dir="ltr"><div>Hi kevin,</div><div>Thank you very much for your reply!</div><div>Ok, probably I solved my issues:</div><div>- I uploaded my metadata file on testshib service;</div><div>- I editaed my relying-party.xml file in this way:</div>



<div><br></div><div>        &lt;metadata:MetadataProvider id=&quot;URLMD&quot; xsi:type=&quot;metadata:FileBackedHTTPMetadataProvider&quot;</div><div>                          metadataURL=&quot;<a href="http://www.testshib.org/metadata/testshib-providers.xml" target="_blank">http://www.testshib.org/metadata/testshib-providers.xml</a>&quot;</div>



<div>                          backingFile=&quot;/opt/shibboleth-idp/metadata/testshib.xml&quot;&gt;</div><div>            &lt;!--</div><div>            &lt;metadata:MetadataFilter xsi:type=&quot;metadata:ChainingFilter&quot;&gt;</div>



<div>                &lt;metadata:MetadataFilter xsi:type=&quot;metadata:RequiredValidUntil&quot;</div><div>                                maxValidityInterval=&quot;P7D&quot; /&gt;</div><div>                &lt;metadata:MetadataFilter xsi:type=&quot;metadata:SignatureValidation&quot;</div>



<div>                                trustEngineRef=&quot;shibboleth.MetadataTrustEngine&quot;</div><div>                                requireSignedMetadata=&quot;true&quot; /&gt;</div><div>                    &lt;metadata:MetadataFilter xsi:type=&quot;metadata:EntityRoleWhiteList&quot;&gt;</div>



<div>                    &lt;metadata:RetainedRole&gt;samlmd:SPSSODescriptor&lt;/metadata:RetainedRole&gt;</div><div>                &lt;/metadata:MetadataFilter&gt;</div><div>            &lt;/metadata:MetadataFilter&gt;</div>



<div>        --&gt;</div><div>        &lt;/metadata:MetadataProvider&gt;</div><div><br></div><div>Now when I try to test my service using testshib I not receive the previous error (metadata error).</div><div><br></div><div>



I configurated my shibboleth Idp to use my CAS server. </div><div>I followed this documentation: <a href="https://wiki.jasig.org/display/CASUM/Shibboleth-CAS+Integration">https://wiki.jasig.org/display/CASUM/Shibboleth-CAS+Integration</a></div>
<div><br></div><div>So:</div><div><br></div><div>1) I included CAS Client Libraries in Idp;</div><div>2) I have modified $SHIB_HOME/conf/handler.xml file where I added:</div><div><div><br></div><div>&lt;!-- Remote User handler for CAS support --&gt;</div>
<div>&lt;LoginHandler xsi:type=&quot;RemoteUser&quot;&gt;</div><div>  &lt;AuthenticationMethod&gt;</div><div>    urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</div><div>  &lt;/AuthenticationMethod&gt;</div><div>  &lt;AuthenticationMethod&gt;</div>
<div>    urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</div><div>  &lt;/AuthenticationMethod&gt;</div><div>&lt;/LoginHandler&gt;</div><div><br></div><div>About this point I added the ph: suffix like in the following block:</div>
<div><br></div><div>&lt;!-- Remote User handler for CAS support --&gt;</div><div>&lt;ph:LoginHandler xsi:type=&quot;ph:RemoteUser&quot;&gt;</div><div>  &lt;ph:AuthenticationMethod&gt;</div><div>    urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified</div>
<div>  &lt;/ph:AuthenticationMethod&gt;</div><div>  &lt;ph:AuthenticationMethod&gt;</div><div>    urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</div><div>  &lt;/ph:AuthenticationMethod&gt;</div><div>&lt;/ph:LoginHandler&gt;</div>
<div><br></div><div>in the same file I commented the default block</div><div><br></div><div>3) In the web.xml file I added this block file &#39;&lt;ph:LoginHandler xsi:type=&quot;ph:RemoteUser&quot;&gt;&#39; (is correct??)</div>
<div><br></div><div>&lt;!-- For CAS client support --&gt;</div><div>&lt;context-param&gt;</div><div>  &lt;param-name&gt;serverName&lt;/param-name&gt;</div><div>  &lt;param-value&gt;<a href="http://vincenteservices.resiltech.net">vincenteservices.resiltech.net</a>&lt;/param-value&gt;</div>
<div>&lt;/context-param&gt;</div><div><br></div><div>&lt;!-- CAS client filters --&gt;</div><div>&lt;filter&gt;</div><div>  &lt;filter-name&gt;CAS Authentication Filter&lt;/filter-name&gt;</div><div>  &lt;filter-class&gt;</div>
<div>      org.jasig.cas.client.authentication.AuthenticationFilter</div><div>  &lt;/filter-class&gt;</div><div>  &lt;init-param&gt;</div><div>    &lt;param-name&gt;casServerLoginUrl&lt;/param-name&gt;</div><div>    &lt;param-value&gt;<a href="https://vincenteservices.resiltech.net/cas/login">https://vincenteservices.resiltech.net/cas/login</a>&lt;/param-value&gt;</div>
<div>  &lt;/init-param&gt;</div><div>&lt;/filter&gt;</div><div> </div><div>&lt;filter-mapping&gt;</div><div>  &lt;filter-name&gt;CAS Authentication Filter&lt;/filter-name&gt;</div><div>  &lt;url-pattern&gt;/Authn/RemoteUser&lt;/url-pattern&gt;</div>
<div>&lt;/filter-mapping&gt;</div><div>  </div><div>&lt;filter&gt;</div><div>  &lt;filter-name&gt;CAS Validation Filter&lt;/filter-name&gt;</div><div>  &lt;filter-class&gt;</div><div>    org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</div>
<div>  &lt;/filter-class&gt;</div><div>  &lt;init-param&gt;</div><div>    &lt;param-name&gt;casServerUrlPrefix&lt;/param-name&gt;</div><div>    &lt;param-value&gt;<a href="https://vincenteservices.resiltech.net/cas">https://vincenteservices.resiltech.net/cas</a>&lt;/param-value&gt;</div>
<div>  &lt;/init-param&gt;</div><div>  &lt;init-param&gt;</div><div>    &lt;param-name&gt;redirectAfterValidation&lt;/param-name&gt;</div><div>    &lt;param-value&gt;true&lt;/param-value&gt;</div><div>  &lt;/init-param&gt;</div>
<div>&lt;/filter&gt;</div><div>  </div><div>&lt;filter-mapping&gt;</div><div>  &lt;filter-name&gt;CAS Validation Filter&lt;/filter-name&gt;</div><div>  &lt;url-pattern&gt;/Authn/RemoteUser&lt;/url-pattern&gt;</div><div>&lt;/filter-mapping&gt;</div>
<div>  </div><div>&lt;filter&gt;</div><div>  &lt;filter-name&gt;CAS HttpServletRequest Wrapper Filter&lt;/filter-name&gt;</div><div>  &lt;filter-class&gt;</div><div>    org.jasig.cas.client.util.HttpServletRequestWrapperFilter</div>
<div>  &lt;/filter-class&gt;</div><div>&lt;/filter&gt;</div><div>  </div><div>&lt;filter-mapping&gt;</div><div>  &lt;filter-name&gt;CAS HttpServletRequest Wrapper Filter&lt;/filter-name&gt;</div><div>  &lt;url-pattern&gt;/Authn/RemoteUser&lt;/url-pattern&gt;</div>
<div>&lt;/filter-mapping&gt;</div><div><br></div><div>- Is correct to change these blocks in this way (change only the url to my CAS server)? Is necessary to change also &lt;context-param&gt;</div><div>  &lt;param-name&gt;serverName&lt;/param-name&gt; ? Is necessary to change something else? </div>
<div><br></div><div>With this configuration when I try to test my Shibbolet Idp (using testshib service) I have a 500 internal error and I see (in my browser) a redirect url (in the browser url bar) similar to  my host /Authn/RemoteUser</div>
<div><br></div><div>All these steps are correct?</div><div>I possible to have same info to configure shibboleth with a CAS server?</div><div><br></div><div>Thank to all</div></div>
<div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/11/27 Kevin P. Foote <span dir="ltr">&lt;<a href="mailto:kpfoote@iup.edu" target="_blank">kpfoote@iup.edu</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br>
On Wed, 27 Nov 2013, Gianluigi Ruggeri wrote:<br>
<br>
&gt; Probably I not have understood very well the question about Shibbolteth<br>
&gt; metadata.<br>
<br>
</div>Metadata is how the two ends of the SAML exchange know how to<br>
communicate with each other.<br>
<br>
&lt;<a href="https://wiki.shibboleth.net/confluence/display/SHIB2/Metadata" target="_blank">https://wiki.shibboleth.net/confluence/display/SHIB2/Metadata</a>&gt;<br>
<div><br>
&gt; Are correct these steps? Why I obtain an error about the metadata?<br>
&gt; An other question: I use a tomcat with my certificate (SSL)...is correct<br>
&gt; regenerate an other certificate as requested during the shibbolteh<br>
&gt; instalaltion? Is possibile that this is a problem?<br>
<br>
</div>Yes so far your steps are ok .. you just need to continue on a bit.<br>
<br>
I do not see your metadata in the testshib service currently. You need to<br>
take your metadata file and register with the testshib service. [1]<br>
<br>
You then need to load the testshib metadata into your IdP config. [2]<br>
<br>
When these two steps are done then you can make a request to the<br>
testshib sp. [3]<br>
<br>
<br>
<br>
<br>
<br>
[1] <a href="https://testshib.org/register.html" target="_blank">https://testshib.org/register.html</a><br>
<br>
[2] <a href="https://testshib.org/configure.html" target="_blank">https://testshib.org/configure.html</a><br>
<br>
[3] <a href="https://sp.testshib.org/" target="_blank">https://sp.testshib.org/</a><br>
<div><div><br>
<br>
<br>
------<br>
thanks<br>
  kevin.foote<br>
<br>
<br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br></div></div>