apache 没有可用的MetadataProvider- shibsp::ConfigurationException

uqcuzwp8  于 2023-04-21  发布在  Apache
关注(0)|答案(5)|浏览(131)

我最近将Shibboleth从版本Shibboleth-sp-2.5.6.0-win 64升级到了Shibboleth-sp-2.6.0.0-win 64,并将Apache Web服务器从2.4.16升级到了2.4.23。
升级后,当我尝试访问我的应用程序时,我得到以下错误:

shibsp::ConfigurationException

The system encountered an error at Fri Oct 14 20:19:51 2016

To report this problem, please contact the site administrator at root@localhost. 

Please include the following message in any email:

shibsp::ConfigurationException at (https://xxxxxx.xxxx/)

No MetadataProvider available.

当我访问https:/xxxxx.xxxxx/Shibboleth.sso/Metadata时,元数据文件被下载,细节似乎是正确的。
有谁知道为什么会出现这种错误,我们如何解决它?

c3frrgcw

c3frrgcw1#

如果有帮助的话,我写了这个:

<MetadataProvider type="XML" validate="true" file="/etc/shibboleth/idp-metadata.xml" />

而不是这样:

<MetadataProvider type="XML" validate="true" path="/etc/shibboleth/idp-metadata.xml" />

XML属性是 path。我使用的是Shibboleth SP版本3。

quhf5bfb

quhf5bfb2#

确保在默认设置中有一个节,如果存在的话,还要有一个覆盖。

iswrvxsc

iswrvxsc3#

仅供记录。您的SP的大多数配置都在shibboleth2.xml中进行。在您的服务器上找到此文件并根据您的舒适度编辑设置。
对于Linux安装:请确保不要从您的安装路径编辑此文件,而是在您的分发路径(即/etc/shibboleth/shibboleth2.xml)中编辑,否则您的更改将不可见...
更改shibboleth2.xml后,必须重新启动shibdsystemctl restart shibd)。

luaexgnf

luaexgnf4#

请尝试以下步骤:

**1)**转到shar.log,检查IDP的Assert消息返回的实体ID是什么。
**2)**转到SP侧中的对应IDP的元数据,比较两个实体ID。
**3)**当然,文件之间一定存在一些不匹配,因此SP无法找到与之对话的IDP,也无法进一步进行操作。

最后,在IDP的元数据中更新实体ID并重启shibd。应该可以工作。

9njqaruj

9njqaruj5#

我遇到了类似的问题,SP和IdP元数据都很好,除了IdP validUntil直到属性过期。修改后,Shibboleth SP识别IdP元数据。

相关问题