我在我的mac上安装了Shibboleth SP。我试着和测试工具建立联系。然而,在我登录之后,我得到了这个错误。
Error Message: No peer endpoint available to which to send SAML response
这是我的Shibboleth2.xml
<Sessions lifetime="28800" timeout="3600" relayState="ss:mem"
checkAddress="false" handlerSSL="false" cookieProps="http">
<SSO entityID="https://idp.testshib.org/idp/shibboleth"
discoveryProtocol="SAMLDS" forceAuthn="true">
SAML2 SAML1
</SSO>
<MetadataProvider type="XML" uri="http://www.testshib.org/metadata/testshib-providers.xml"
backingFilePath="testshib-two-idp-metadata.xml" reloadInterval="180000">
</MetadataProvider>
这是我的元数据
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://localhost/Shibboleth.sso/SAML2/POST" index="1"/>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign" Location="https://localhost/Shibboleth.sso/SAML2/POST-SimpleSign" index="2"/>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS" Location="https://localhost/Shibboleth.sso/SAML2/ECP" index="3"/>
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:1.0:profiles:browser-post" Location="https://localhost/Shibboleth.sso/SAML/POST" index="4"/>
为什么我会得到这个错误?
发布于 2015-01-27 12:38:08
此消息表示Testshib身份提供者的配置与您尝试登录的Shibboleth服务提供者的配置不匹配。我怀疑在元数据提供的断言消费者服务URL中使用名称"localhost“会导致问题。IDP正在尝试向https://localhost/Shibboleth.sso/SAML2/POST发送SAML响应,但当然没有断言Consumer Service,因为"localhost“在本例中就是IDP本身。
因此,我会从Testshib中删除所有内容,更改SP的entityID以使其更独特(使用您的IP地址而不是本地主机),并将SP的更新元数据重新添加到TestShib中。
发布于 2016-03-31 09:38:15
尝试这个请求,然后Testshib的idp记录在https://idp.testshib.org/cgi-bin/idplog.cgi?lines=300上。对于我来说,有这样一条错误消息:
05:15:03.350 - WARN [org.opensaml.saml2.binding.AuthnResponseEndpointSelector:206] -
Relying party 'my.entity.id' requested the response to be returned to endpoint with ACS
URL 'https://wrong-host/Shibboleth.sso/SAML2/POST' and binding 'urn:oasis:names:tc:
SAML:2.0:bindings:HTTP-POST' however no endpoint, with that URL and using a supported
binding, can be found in the relying party's metadata
但我的元数据说
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"
Location="https://right-host/Shibboleth.sso/SAML2/POST" index="1"/>
如您所见,shibd请求重定向到错误的位置。问题是shibd使用来自Apache的主机名。(我假设您使用的是Apache。如果不是这样,设置可能也是类似的。)
解决方案是转到/etc/apache2/sites-enabled/default-ssl.conf
并将ServerName
设置为与您的元数据匹配的正确host:port
。然后,打开/etc/apache2/apache2.conf
并确保UseCanonicalName
为On
。
这在docs中有详细介绍,我建议您仔细阅读。
https://stackoverflow.com/questions/27951148
复制相似问题