为了回答您的五 (5) 个问题,不失一般性,我们假设
(I) SAML IdP的元数据文件为idpsaml-metadata.xml
(二)SAML SP的元数据文件为sp-example-org.xml
问答
- 在 IdP 安装中将 SP XML 信息放在何处
答案:/opt/shibboleth-idp/metadata/sp-example-org.xml
- 在 IdP 安装中将 SP 证书放在何处(或设置/配置证书路径)
Answer:SAML SP 的元数据文件由 SP 证书组成。
SAML IdP 将从 SAML SP 的元数据(例如 sp-example-org.xml)中提取 SP 证书
- 从哪里获得 IdP 证书(我认为默认设置会为我生成一些东西?不清楚)
回答:SAML IdP 的元数据文件包含所有 IdP 证书(由 SAML IdP 的默认设置生成)。
您需要将 SAML IdP 的元数据文件(例如 idpsaml-metadata.xml)放入 SAML SP 的主目录,例如 /etc/shibboleth/idpsaml-metadata.xml
- IdP 登录路径在哪里
回答:通常 SAML SP 使用 HTTP-POST 端点作为 SAML IdP 登录路径,例如,
<SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://IdP-Server-URL/idp/profile/SAML2/POST/SSO"/>
您还需要使用 LDAP 用户身份验证配置 Shibboleth IdP。
/opt/shibboleth-idp/conf/idp.properties
/opt/shibboleth-idp/conf/ldap.properties
/opt/shibboleth-idp/conf/attribute-filter.xml
/opt/shibboleth-idp/conf/attribute-resolver-full.xml
- 无论我是否需要配置其他任何东西来让两人交谈
回答:为了允许 SAML IdP 为 SAML SP 提供身份验证,SAML IdP 和 SAML SP 都需要交换它们的元数据。
然后您需要使用 SAML SP 配置 SAML IdP。
SAML IdP
/opt/shibboleth-idp/conf/metadata-providers.xml
/opt/shibboleth-idp/conf/relying-party.xml
SAML SP
/etc/shibboleth/shibboleth2.xml
/etc/shibboleth/attribute-map.xml
备注:
GitHub 存储库中的How to build and run Shibboleth SAML IdP and SP using Docker container 提供了 Shibboleth IdP 和 SP 的示例配置文件。