ページ ツリー

比較バージョン

キー

  • この行は追加されました。
  • この行は削除されました。
  • 書式設定が変更されました。

...

In order for users to use this system, the Shibboleth IdP operated by your institution needs to be configured to send the user's attribute values to the SP of this service.

本システムを利用するには、貴機関が運用する Shibboleth IdP において、ユーザーの属性値を本サービスの SP へ送出するための設定が必要となります。

entityIDhttps://jupyter.cs.rcos.nii.ac.jp/shibboleth-sp
Attributes to be sent out
  • eduPersonPrincipalName (Required)
  • mail (Required

...

  1. Locate the cache file. It is usually located in /opt/shibboleth-idp/metadata/gakunin-metadata.xml.
  2. Open the cache file and search for the string "https://jupyter.cs.rcos.nii.ac.jp/shibboleth-sp".
  3. If not found, get the latest metadata from https://metadata.gakunin.nii.ac.jp/gakunin-metadata.xml and replace the cache file.

属性送出の設定

Configuring Attribute Sending

Follow the steps below to edit the Shibboleth IdP configuration file. For more details, please refer to the GakuNin Technical Guide.以下の手順で Shibboleth IdP の設定ファイルを編集します。詳細は学認技術ガイドを参照してください。

  1. /opt/shibboleth-idp/conf/attribute-resolver.xml を開き、「id="eduPersonPrincipalName"」という文字列を検索します。
  2. 次の XML 要素が有効である(コメントアウトされていない)ならばOKです。 → 参考

    <resolver:AttributeDefinition xsi:type="ad:Scoped" id="eduPersonPrincipalName" scope="%{idp.scope}" sourceAttributeID="uid">
        <resolver:Dependency ref="myLDAP" />
        <resolver:AttributeEncoder xsi:type="enc:SAML1ScopedString" name="urn:mace:dir:attribute-def:eduPersonPrincipalName" encodeType="false" />
        <resolver:AttributeEncoder xsi:type="enc:SAML2ScopedString" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6" friendlyName="eduPersonPrincipalName" encodeType="false" />
    </resolver:AttributeDefinition>

  3. 同様に、「id="mail"」も有効であることを確認します。 → 参考

    <resolver:AttributeDefinition xsi:type="ad:Simple" id="mail" sourceAttributeID="mail">
        <resolver:Dependency ref="myLDAP" />
        <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:mail" encodeType="false" />
        <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:0.9.2342.19200300.100.1.3" friendlyName="mail" encodeType="false" />
    </resolver:AttributeDefinition>

  4. /opt/shibboleth-idp/conf/attribute-filter.xml を開き、「</AttributeFilterPolicyGroup>」という文字列を検索します。

  5. 見つかったタグの直前に次の XML 要素を追加します。 → 参考

    <AttributeFilterPolicy id="PolicyforNiiRdcDataAnalysisPlatform">
        <PolicyRequirementRule xsi:type="Requester" value="https://jupyter.cs.rcos.nii.ac.jp/shibboleth-sp" />
        <AttributeRule attributeID="eduPersonPrincipalName">
            <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
        <AttributeRule attributeID="mail">
            <PermitValueRule xsi:type="ANY" />
        </AttributeRule>
    </AttributeFilterPolicy>
  6. Shibboleth IdP サービスを再起動します。

...