...
展開 |
---|
title | バージョン2.3.xおよびそれ以前の場合 |
---|
|
パネル |
---|
borderColor | #cccccc |
---|
bgColor | #eeeeee |
---|
borderStyle | solid |
---|
| ※「<Host name="sp.example.org">」を検索し、場所を特定してください。(行番号は参考です)
68 <Host name="example-sp.nii.ac.jp">
↑ホスト名変更
69 <Path name="secure" authType="shibboleth" requireSession="true"/>
70 </Host>
(省略)
83 <ApplicationDefaults id="default" policyId="default"
84 entityID="https://example-sp.nii.ac.jp/shibboleth-sp"
↑ホスト名変更 ↑後ろに「-sp」追記
85 REMOTE_USER="eppn persistent-id targeted-id"
86 signing="false" encryption="false"> |
※端末のサイズによっては表記がずれる可能性がございます。画面を広くしてご覧ください。 |
2.DSサーバの参照設定を行います。(★)
/etc/shibboleth/shibboleth2.xml ファイルを以下のように編集してください。
※DSのURLはフェデレーション毎に異なります。
運用フェデレーション: https://ds.gakunin.nii.ac.jp/WAYF
テストフェデレーション: https://test-ds.gakunin.nii.ac.jp/WAYF
ヒント |
---|
|
(★)
DSサーバの参照先アドレスは、以下を設定してください。
https://ex-ds.ecloud.nii.ac.jp/WAYF |
展開 |
---|
|
(★)(★)(★) パネル |
---|
borderColor | #cccccc |
---|
bgColor | #eeeeee |
---|
borderStyle | solid |
---|
| ※「</Sessions>」の直前に行を挿入してください。
<!-- JSON feed of discovery information. -->
<Handler type="DiscoveryFeed" Location="/DiscoFeed"/>
<SessionInitiator type="Chaining" Location="/DS" isDefault="true" id="DS">
<SessionInitiator type="SAML2" template="bindingTemplate.html"/>
<SessionInitiator type="Shib1"/>
<SessionInitiator type="SAMLDS" URL="https://test-ds.gakunin.nii.ac.jp/WAYF"/>
↑DSサーバの設定
</SessionInitiator>
</Sessions>
(省略)
|
※端末のサイズによっては表記がずれる可能性がございます。画面を広くしてご覧ください。 |
展開 |
---|
title | バージョン2.3.xおよびそれ以前の場合 |
---|
|
パネル |
---|
borderColor | #cccccc |
---|
bgColor | #eeeeee |
---|
borderStyle | solid |
---|
| ※「Default example directs」を検索し、場所を特定してください。(行番号は参考です)
108 <!-- Default example directs to a specific IdP's SSO service (favoring SAML 2 over Shib 1). -->
109 <SessionInitiator type="Chaining" Location="/Login" isDefault="false" id="Intranet"
↑変更(false:直接IdPサーバを参照しない)
110 relayState="cookie" entityID="https://idp.example.org/idp/shibboleth">
111 <SessionInitiator type="SAML2" defaultACSIndex="1" template="bindingTemplate.html"/>
112 <SessionInitiator type="Shib1" defaultACSIndex="5"/>
113 </SessionInitiator>
(省略)
122 <!-- An example supporting the new-style of discovery service. -->
123 <SessionInitiator type="Chaining" Location="/DS" isDefault="true" id="DS" relayState="cookie">
↑追加(true:DSサーバを参照する)
124 <SessionInitiator type="SAML2" defaultACSIndex="1" template="bindingTemplate.html"/>
125 <SessionInitiator type="Shib1" defaultACSIndex="5"/>
126 <SessionInitiator type="SAMLDS" URL="https://example-ds.nii.ac.jp/ds/WAYF"/>
↑DSサーバの設定
127 </SessionInitiator>
|
|
3.メタデータの自動更新設定を行います。(★)
・証明書を格納するディレクトリを作成します。(★)
パネル |
---|
borderColor | #cccccc |
---|
bgColor | #eeeeee |
---|
borderStyle | solid |
---|
|
# mkdir /etc/shibboleth/cert |
・検証に用いる検証用証明書(gakunin-signer-2010.cer)をダウンロードして、 /etc/shibboleth/cert/に置きます。
(上記は運用フェデレーションの場合の証明書で、テストフェデレーションの場合はgakunin-test-signer-2011.cerをダウンロードして使用してください。)
ヒント |
---|
|
(★)
ホスト名には、各自が割り振られたホスト名を設定します。
例)1番を割り振られた場合のホスト名
ex-sp-test01.ecloud.nii.ac.jp |
・メタデータを自動的にダウンロードする設定を行います。(★)
/etc/shibboleth/shibboleth2.xml ファイルを以下のように編集してください。
ヒント |
---|
|
(★) ・実習セミナー内のDSサーバよりメタデータを自動ダウンロードします。
参照先のuriは、以下を設定してください。(実習セミナー内の公開メタデータ)
https://ex-ds.ecloud.nii.ac.jp/fed/ex-fed-metadata.xml
・自動ダウンロードするメタデータの署名検証用の証明書を設定します。
先ほどコピーした、実習セミナー用の証明書「ex-fed.crt」を参照するように設定します。
/etc/shibboleth/cert/ex-fed.crt |
パネル |
---|
borderColor | #cccccc |
---|
bgColor | #eeeeee |
---|
borderStyle | solid |
---|
|
<!-- Example of remotely supplied batch of signed metadata. -->
<!-- --> ←コメントアウト解除
<MetadataProvider type="XML" uri="https://metadata.gakunin.nii.ac.jp/gakunin-metadata.xml"
↑参照先のuriを設定
backingFilePath="federation-metadata.xml" reloadInterval="7200">
<MetadataFilter type="RequireValidUntil" maxValidityInterval="1296000"/>
↑validUntilの検証設定
<MetadataFilter type="Signature" certificate="/etc/shibboleth/cert/gakunin-signer-2010.cer"/>
↑自動更新メタデータの検証用証明書設定
</MetadataProvider>
<!-- --> ←コメントアウト解除 |
(上記は運用フェデレーションでの設定で、テストフェデレーションの場合はメタデータダウンロードURLも異なります。詳しくはテストフェデレーションルールをご参照ください。
⇒テストフェデレーションルール)
(maxValidityIntervalおよびメタデータのvalidUntilについては以下をご参照ください。
⇒メタデータのvalidUntilを検証する設定方法)
※ 上記設定によってダウンロードされたメタデータは /var/cache/shibboleth/federation-metadata.xml に配置されます。
参考資料
- Shibboleth SP 2.xの設定ドキュメント
https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPReloadableXMLFile
https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPMetadataProvider