shibboleth2.xml ファイル(★)
...
1. entityIDを設定します。(★)
/etc/shibboleth/shibboleth2.xml ファイルを以下のように編集してください。
ヒント |
---|
|
ホスト名には、各自が割り振られたホスト名を設定します。 例)1番を割り振られた場合のホスト名 ex-sp-test01.ecloud.nii.ac.jp |
展開 |
---|
|
パネル |
---|
borderColor | #cccccc |
---|
bgColor | #eeeeee |
---|
borderStyle | solid |
---|
| ※「ApplicationDefaults entityID」を検索し、場所を特定してください。
<ApplicationDefaults entityID="https://example-sp.nii.ac.jp/shibboleth-sp"
↑ホスト名変更 ↑後ろに「-sp」追記
REMOTE_USER="eppn persistent-id targeted-id"> |
※端末のサイズによっては表記がずれる可能性がございます。画面を広くしてご覧ください。 |
展開 |
---|
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サーバの参照設定を行います。
2. DSサーバの参照設定を行います。(★)
/etc/shibboleth/shibboleth2.xml ファイルを以下のように編集してください。
※DSサーバのURLはフェデレーション毎に異なります。※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サーバを参照しない)↑変更(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.メタデータの自動更新設定を行います。
3. メタデータの自動更新設定を行います。(★)
・証明書を格納するディレクトリを作成します。(★)
...
・検証に用いる検証用証明書(gakunin-signer-2010.cer)をダウンロードして、 )をダウンロードして、/etc/shibboleth/cert/ に置きます。
(上記は運用フェデレーションの場合の証明書で、テストフェデレーションの場合はgakunin-test-signer-2011.cerをダウンロードして使用してください。)
...
ヒント |
---|
|
・実習セミナー内のDSサーバよりメタデータを自動ダウンロードします。 参照先のuriは、以下を設定してください。(実習セミナー内の公開メタデータ) 参照先のuri には、以下を設定してください。(実習セミナー内の公開メタデータ) https://ex-ds.ecloud.nii.ac.jp/fed/ex-fed-metadata.xml ・自動ダウンロードするメタデータの署名検証用の証明書を設定します。 先ほどコピーした、実習セミナー用の証明書「ex-fed.crt」を参照するように設定します。 /etc/shibboleth/cert/ex-fed.crt |
...
※端末のサイズによっては表記がずれる可能性がございます。画面を広くしてご覧ください。
(上記は運用フェデレーションでの設定で、テストフェデレーションの場合はメタデータダウンロードURLも異なります。詳しくはテストフェデレーションルールをご参照ください。
⇒テストフェデレーションルール)
(maxValidityIntervalおよびメタデータのvalidUntilについては以下をご参照ください。
⇒メタデータのvalidUntilを検証する設定方法)
※ 上記設定によってダウンロードされたメタデータは /var/cache/shibboleth/federation-metadata.xml に配置されます。
...