比較バージョン

キー

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

...

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid
# mysql -u root -p
Enter password: ← 設定したrootパスワードを入力
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 46
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE shibboleth;
MariaDB [(none)]> CONNECT shibboleth
MariaDB [shibboleth]>
CREATE TABLE shibpid (
    localEntity VARCHAR(255) NOT NULL,
    peerEntity VARCHAR(255) NOT NULL,
    persistentId VARCHAR(50) NOT NULL,
    principalName VARCHAR(50) NOT NULL,
    localId VARCHAR(50) NOT NULL,
    peerProvidedId VARCHAR(50) NULL,
    creationDate TIMESTAMP NOT NULL,
    deactivationDate TIMESTAMP NULL,
    PRIMARY KEY (localEntity, peerEntity, persistentId)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

...

※端末のサイズによっては表記がずれる可能性がございます。画面を広くしてご覧ください。


...

3.

...

JDBCドライバー(mysql-connector-javaパッケージ)

...

をインストールする

MySQL 以下のコマンドでMariaDB向けJDBCドライバーMySQL Connector/Jのダウンロードページ(https://dev.mysql.com/downloads/connector/j/)より mysql-connector-java-5.1.xx.zip をダウンロードしてください。

ダウンロード後にPGP署名を確認するようにしてください。"Signature"リンクの先にある

J(mysql-connector-javaパッケージ)をインストールしてください。

#cccccc
パネル
パネル
borderColor
bgColor#eeeeee
borderStylesolid
-----BEGIN PGP SIGNATURE-----
...
-----END PGP SIGNATURE-----

 の部分をヘッダフッタも含めてコピーし、mysql-connector-java-5.1.xx.zip.asc というファイルにペーストした上で、「GnuPG を使用した署名確認(https://dev.mysql.com/doc/refman/5.1/ja/checking-gpg-signature.html)」にある手順に従って署名検証してください。

 
PGPの署名検証が完了したら、ダウンロードしたZIPファイルを展開してください。中にmysql-connector-java-5.1.xx-bin.jarというJARファイルがあります。

4. JDBCドライバーをインストールする 

# yum install mysql-connector-java

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

#

cp mysql-connector-java-5.1.xx

ln -s /usr/share/java/mysql-connector-java

-5.1.xx-bin

.jar

/opt/shibboleth-idp/edit-webapp/WEB-INF/lib/
#

/opt/shibboleth-idp/bin/build.sh
Installation

Directory:

[/opt/shibboleth-idp]
[Enter]

 ←入力なし

 ←入力なし
Rebuilding

/opt/shibboleth-idp/war/idp.war

...
...done

BUILD

SUCCESSFUL
Total

time:

3

seconds

※端末のサイズによっては表記がずれる可能性がございます。画面を広くしてご覧ください。 

ヒント

mysql-connector-javaパッケージを更新した場合は再度ビルドスクリプトを実行してください。


...

5. /opt/shibboleth-idp/conf/global.xml を修正する

...

パネル
borderColor#cccccc
bgColor#eeeeee
borderStylesolid

   

<!--

Use

this

file

to

define

any

custom

beans

needed

globally.

-->
   

<bean

id="MyDataSource"


         

class="org.apache.tomcat.dbcp.dbcp.BasicDataSource"
         

p:driverClassName="com.mysql.jdbc.Driver"
         

p:url="jdbc:mysql://localhost:3306/

データベース名

shibboleth"
         

p:username="データベースユーザー名"
         

p:password="データベースパスワード"
         

p:maxActive="10"
         

p:maxIdle="5"
         

p:maxWait="15000"
         

p:testOnBorrow="true"
         

p:validationQuery="select

1"
         

p:validationQueryTimeout="5"

/>

   

<!--

    Algorithm

whitelists

and

blacklists

that

override

or

merge

with

library

defaults.

Normally

you

can

leave

    these

empty

or

commented

and

use

the

system

defaults,

but

you

can

override

those

defaults

using

these

lists.

    Each

<value>

element

is

an

algorithm

URI,

or

you

can

use

<util:constant>

elements

in

place

of

literal

values.

    -->


...

6. /opt/shibboleth-idp/conf/saml-nameid.properties を修正する

...