比較バージョン

キー

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

...

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

uApproveJPのパッケージは、「3.手順書」に記載されていますが、以下の例のように実習セミナー用の
DSサーバからダウンロードします。(wgetコマンドでバイナリファイルのパッケージを取得)

例)
# wget https://ex-ds.gakunin.nii.ac.jp/uApproveJP-4.0.0-bin.zip

手順書の記載に合わせて「/usr/local/src」配下に展開しておきます。
# unzip -d /usr/local/src uApproveJP-4.0.0-bin.zip
以降、手順書中の $UAPPROVE_INSTALL$ の部分は /usr/local/src/uApproveJP-4.0.0/ と読み替えてください。

・CentOS 7環境に合わせたMySQLDataSourceの設定

...

borderColor#cccccc
bgColor#eeeeee
borderStylesolid


...

<bean id="shibboleth.MySQLDataSource"
      class="org.apache.commons.dbcp.BasicDataSource"
      p:driverClassName="com.mysql.jdbc.Driver"
      p:url="jdbc:mysql://localhost:3306/shibboleth"
      p:username="shibboleth"
      p:password="shibpassword"
      p:maxActive="10"
      p:maxIdle="5"
      p:maxWait="15000"
      p:testOnBorrow="true"
      p:validationQuery="select 1"
      p:validationQueryTimeout="5" />

・ローカライズ(日本語環境用メッセージファイル)

...

borderColor#cccccc
bgColor#eeeeee
borderStylesolid

手順書内にある「2.3 ローカライズ」の日本語環境用のメッセージファイルテンプレートは以下のURLの
ページにリンクがあるので、そこからダウンロードしてください。

...

# wget https://wiki.shibboleth.net/confluence/download/attachments/21660022/authn-messages_ja.properties
# wget https://wiki.shibboleth.net/confluence/download/attachments/21660022/consent-messages_ja.properties
# wget https://wiki.shibboleth.net/confluence/download/attachments/21660022/error-messages_ja.properties

・AttributeInMetadataマッチングルール

...

パネル
bgColor#eeeeee

AttributeFilterPolicyGroupタグにuApproveJP用の設定を2箇所に追加します。

<AttributeFilterPolicyGroup id="ShibbolethFilterPolicyForGakuNinTestFed"
        xmlns="urn:mace:shibboleth:2.0:afp"
        xmlns:afp="urn:mace:shibboleth:2.0:afp"
        xmlns:basic="urn:mace:shibboleth:2.0:afp:mf:basic"
         xmlns:saml="urn:mace:shibboleth:2.0:afp:mf:saml"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:uajpmf="http://www.gakunin.jp/ns/uapprove-jp/afp/mf"

        xsi:schemaLocation="urn:mace:shibboleth:2.0:afp xmlns:xsi="http://shibbolethwww.w3.netorg/schema2001/idp/shibboleth-afp.xsd
                            urn:mace:shibboleth:2.0:afp:mf:basic http://shibboleth.net/schema/idp/shibboleth-afp-mf-basic.xsd
                            XMLSchema-instance"
xsi:schemaLocation="urn:mace:shibboleth:2.0:afp :mf:saml http://shibboleth.net/schema/idp/shibboleth-afp-mf-saml.xsd
                             http://www.gakunin.jp/ns/uapprove-jp/afp/mf http://www.gakunin.jp/schema/idp/gakunin-afp-mf-uapprovejp.xsd">

パネル
bgColor#eeeeee

実習セミナーでは、「sn、givenName、mail、eduPersonAffiliation」をオプショナル属性とします。実習セミナーでは、「surname、givenName、mail、eduPersonAffiliation」をオプショナル属性とします。
以下のように4つの属性を全て変更してください。
例)surname属性の設定
例)eduPersonAffiliation属性の設定
<!--
<AttributeRule attributeID="eduPersonAffiliation" permitAny="true" />
-->
<AttributeRule attributeID="surnameeduPersonAffiliation">
   <PermitValueRule xsi:type="uajpmf:AttributeInMetadata"
                               matchIfMetadataSilent="true"
                               
onlyIfRequired="false"
                               
onlyIfChecked="true" />
</AttributeRule>

・Tomcatの再起動

Tomcatを再起動して、更新した設定ファイルを読み込ませます。

...