比較バージョン

キー

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

...

本メニューでは、IdPをカスタマイズします。
IdP Ver3が正常に起動している環境に対して、Ver4にアップグレードします。
ベースがIdP v3.2となっているところを、一度IdP v3.4にアップグレードしてからIdP v4にアップグレードします。

設定ファイルについては、自動的にコンバートされたものを使用して認証確認まで行います。 


...

2. 実習セミナーでは

以下の手順で作業を進めてください。以下は、本環境での関連情報となります。

...

詳細な手順については、「3.手順」を参照ください。

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# systemctl stop tomcat

・Shibboleth Ver3.2のバックアップ

...

また、以下にはIdP v4の動作に必要なJava11とTomcat9のインストール手順を記載しています。

・IdPのパッケージ

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# cd /root
/PKG 配下に用意しています。

shibboleth-identity-provider-3.4.7# tar zcfv shibidp-v3.2-backup.tar.gz /opt/shibboleth-idp

・Tomcat 7の起動

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# systemctl start tomcat

...


shibboleth-identity-provider-4.0.1.tar.gz

・ShibbolethIdP インストール

パッケージは、以下のように/root/PKG配下に配置しています。

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# cd /root/PKG

IdP v3.4へのアップグレード
# tar xzvf shibboleth-identity-provider-3.4.?.tar.gz
# cd shibboleth-identity-provider-3.4.?

IdP v4.0へのアップグレード

# tar xzvf shibboleth-identity-provider-4.0.?.tar.gz
# cd shibboleth-identity-provider-4.0.?

# ./bin/install.sh -Didp.conf.filemode=640 -Didp.conf.credentials.filemode=640

...

以降は、IdP4へのアップグレード時にJava11とTomcat9をインストールする手順となります。

・Tomcat 7のアンインストール

Source (Distribution) Directory (press <enter> to accept default): [/root/PKG/shibboleth-identity-provider-3.4.7][Enter] ←入力なし
Installation Directory: [/opt/shibboleth-idp]
[Enter] ←入力なし

Rebuilding /opt/shibboleth-idp/war/idp.war ...
...done

BUILD SUCCESSFUL
Total time: 2 minutes 27 seconds

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

・所有者、パーミッションの設定(server.key)

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# chown root:tomcat /opt/shibboleth-idp/credentials/server.key
# chmod 640 /opt/shibboleth-idp/credentials/server.key

・Tomcat 7の停止

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# systemctl stop tomcat

・Tomcat 7のバックアップ

以下のように/root直下に移動して、念のためバックアップを行います。
パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# cd /root
# tar zcfv tomcat7-backup.tar.gz /etc/tomcat /var/log/tomcat /var/lib/tomcat/webapps

・Tomcat 7のアンインストール

# yum remove tomcat

・jakarta-taglibs-standardのアンインストール

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# yum remove tomcat

...

jakarta-taglibs-standard

・JDK 8のアンインストール

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# yum remove java-1.8.0-openjdk

...

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
enableLookups="false" tomcatAuthentication="false" address="127.0.0.1" maxPostSize="100000" />

・ShibbolethIdP Ver4のインストール

パッケージは、以下のように/root/PKG配下に配置しています。

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

# cd /root/PKG
#
tar xzvf shibboleth-identity-provider-4.?.?.tar.gz
# cd shibboleth-identity-provider-4.?.?
# ./bin/install.sh -Didp.conf.filemode=640 -Didp.conf.credentials.group=tomcat

 install.shシェルスクリプトを実行すると、以下のような問い合わせがあります。
手順に従って、進めてください。

...

borderColor#cccccc
bgColor#eeeeee
borderStylesolid

Buildfile: /root/PKG/shibboleth-identity-provider-4.0.1/bin/build.xml

install:
Source (Distribution) Directory (press <enter> to accept default): [/root/PKG/shibboleth-identity-provider-4.0.1] ?
[Enter] ←入力なし

Installation Directory: [/opt/shibboleth-idp]
[Enter] ←入力なし

INFO [net.shibboleth.idp.installer.V4Install:155] - Update from version 3 to version 4.0.1
INFO [net.shibboleth.idp.installer.BuildWar:72] - Rebuilding /opt/shibboleth-idp/war/idp.war, Version 4.0.1
INFO [net.shibboleth.idp.installer.BuildWar:81] - Initial populate from /opt/shibboleth-idp/dist/webapp to /opt/shibboleth-idp/webpapp.tmp
INFO [net.shibboleth.idp.installer.BuildWar:90] - Overlay from /opt/shibboleth-idp/edit-webapp to /opt/shibboleth-idp/webpapp.tmp

BUILD FAILED
/root/PKG/shibboleth-identity-provider-4.0.1/bin/build.xml:20: Failed to copy /opt/shibboleth-idp/edit-webapp/WEB-INF/lib/jakarta-taglibs-core.jar to /opt/shibboleth-idp/webpapp.tmp/WEB-INF/lib/jakarta-taglibs-core.jar due to java.nio.file.NoSuchFileException /opt/shibboleth-idp/edit-webapp/WEB-INF/lib/jakarta-taglibs-core.jar

Total time: 1 minute 14 seconds


・パーミッションの調整

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid
# chown -R tomcat:tomcat /opt/shibboleth-idp/logs
# chgrp -R tomcat /opt/shibboleth-idp/conf
# chmod -R g+r /opt/shibboleth-idp/conf
# find /opt/shibboleth-idp/conf -type d -exec chmod -R g+s {} \;
# chgrp tomcat /opt/shibboleth-idp/metadata
# chmod g+w /opt/shibboleth-idp/metadata
# chmod +t /opt/shibboleth-idp/metadata
# chgrp tomcat /opt/shibboleth-idp/credentials/secrets.properties
# chmod g+r /opt/shibboleth-idp/credentials/secrets.properties
# chgrp tomcat /opt/shibboleth-idp/credentials/sealer.*
# chmod g+r /opt/shibboleth-idp/credentials/sealer.*

...

・jstl-1.2.jar

...

について

jstl-1.2.jarは、予め「/root/PKG」配下にあります。
editIdP v4では、edit-webapp/ 配下に配置し、idp.warに含めます。
また、旧環境で使用した不要なファイルを削除します。

...

⑥ 正しく属性受信の確認ページが表示される事を確認してください。

...


Prevnextbuttons