ForgeRockのサイト(https://forgerock.org/downloads/openidm-builds/)からopenidm-3.2.0-SNAPSHOT.zipをダウンロードして、/usr/local配下で展開する。コンソールからOpenIDMを起動する。
# /usr/local/openidm/startup.sh
http://chef-idm.openam.net:8080/system/console
※admin/admin
https://chef-idm.openam.net:8443/openidmui
※openidm-admin/openidm-admin
ログイン後に適当にOpenIDM1234に変更
https://chef-idm.openam.net:8443/admin
※openidm-admin/OpenIDM1234
次にローカルリポジトリとしてOrientDB(本番利用非推奨)からMySQL(本番利用推奨)をインストールする。
# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-5.6.21-1.el7.x86_64.rpm-bundle.tar
# tar -xvf MySQL-5.6.21-1.el6.x86_64.rpm-bundle.tar
# rm -rf /var/lib/mysql
# rpm -Uvh MySQL-shared-compat-5.6.21-1.el6.x86_64.rpm
# rpm -Uvh MySQL-server-5.6.21-1.el6.x86_64.rpm
# rpm -Uvh MySQL-shared-5.6.21-1.el6.x86_64.rpm
# rpm -Uvh MySQL-client-5.6.21-1.el6.x86_64.rpm
# chkconfig mysql on
# chkconfig --list mysql
mysql 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# more /root/.mysql_secret
# The random password set for the root user at Thu Jan 1 12:19:59 2015 (local t
ime): U0K0A15DfLHoiXQZ
# mysql -u root -p
Enter password: ※上のパスワードを入力
mysql> show databases;
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
mysql> SET PASSWORD = PASSWORD('OpenIDM1234');
mysql> exit
OpenIDMを停止する。
-> OpenIDM ready
-> shutdown
#
MySQLのJDBCドライバを配備
http://dev.mysql.com/downloads/connector/j/よりmysql-connector-java-5.1.34.tar.gzをダウンロードして、展開する。
# gunzip mysql-connector-java-5.1.34.tar.gz
# cp mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar /usr/local/openidm/bundle
OrientDBからMySQLに変更し、OpenIDMのDBを構築
# cd /usr/local/openidm/conf
# rm -f repo.orientdb.json
# cp -p /usr/local/openidm/samples/usecase/db/mysql/repo.jdbc.json /usr/local/openidm/conf
# mysql -u root -p < /usr/local/openidm/db/mysql/scripts/openidm.sql
Enter password:
#
OpenIDMのDBを表示
# mysql -u root -p
Enter password:
mysql> use openidm;
mysql> show tables;
+---------------------------+
| Tables_in_openidm |
+---------------------------+
| auditaccess |
| auditactivity |
| auditrecon |
| auditsync |
| clusterobjectproperties |
| clusterobjects |
| configobjectproperties |
| configobjects |
| genericobjectproperties |
| genericobjects |
| internaluser |
| links |
| managedobjectproperties |
| managedobjects |
| objecttypes |
| schedulerobjectproperties |
| schedulerobjects |
| security |
| securitykeys |
| uinotification |
+---------------------------+
20 rows in set (0.00 sec)
mysql> exit
OpenIDMを再起動。
# /usr/local/openidm/startup.sh
org.forgerock.openidm.repo.jdbcがactiveとなっていて、org.forgerock.openidm.repo.orientdbがunsatisfiedとなっていることを確認する。
-> scr list
Id State Name
[ 20] [active ] org.forgerock.openidm.endpoint
[ 24] [active ] org.forgerock.openidm.endpoint
[ 23] [active ] org.forgerock.openidm.endpoint
[ 18] [active ] org.forgerock.openidm.endpoint
[ 28] [active ] org.forgerock.openidm.endpoint
[ 27] [active ] org.forgerock.openidm.endpoint
[ 21] [active ] org.forgerock.openidm.endpoint
[ 10] [active ] org.forgerock.openidm.endpoint
[ 25] [active ] org.forgerock.openidm.endpoint
[ 19] [active ] org.forgerock.openidm.endpoint
[ 29] [active ] org.forgerock.openidm.endpoint
[ 1] [active ] org.forgerock.openidm.config.enhanced
[ 6] [active ] org.forgerock.openidm.http.context
[ 39] [active ] org.forgerock.openidm.info
[ 40] [active ] org.forgerock.openidm.info
[ 17] [active ] org.forgerock.openidm.provisioner.openicf.connectorinfoprovider
[ 4] [unsatisfied ] org.forgerock.openidm.repo.orientdb
[ 16] [active ] org.forgerock.openidm.openicf.syncfailure
[ 30] [active ] org.forgerock.openidm.api-servlet
[ 33] [active ] org.forgerock.openidm.authnfilterbuilder
[ 2] [active ] org.forgerock.openidm.config.enhanced.starter
[ 0] [active ] org.forgerock.openidm.security
[ 8] [active ] org.forgerock.openidm.audit
[ 45] [unsatisfied ] org.forgerock.openidm.schedule
[ 11] [active ] org.forgerock.openidm.servletfilter.registrator
[ 3] [active ] org.forgerock.openidm.repo.jdbc
[ 43] [active ] org.forgerock.openidm.managed
[ 15] [unsatisfied ] org.forgerock.openidm.provisioner.openicf
[ 35] [active ] org.forgerock.openidm.workflow
[ 38] [active ] org.forgerock.openidm.health
[ 7] [active ] org.forgerock.openidm.provisioner
[ 13] [active ] org.forgerock.openidm.internal
[ 44] [active ] org.forgerock.openidm.taskscanner
[ 14] [active ] org.forgerock.openidm.external.rest
[ 9] [active ] org.forgerock.openidm.ui.context
[ 26] [active ] org.forgerock.openidm.ui.context
[ 31] [active ] org.forgerock.openidm.router
[ 46] [active ] org.forgerock.openidm.scheduler
[ 32] [unsatisfied ] org.forgerock.openidm.external.email
[ 41] [active ] org.forgerock.openidm.sync
[ 36] [active ] org.forgerock.openidm.policy
[ 5] [active ] org.forgerock.openidm.cluster
[ 37] [active ] org.forgerock.openidm.script
[ 42] [active ] org.forgerock.openidm.recon
[ 12] [active ] org.forgerock.openidm.servletfilter
[ 22] [active ] org.forgerock.openidm.servletfilter
[ 34] [active ] org.forgerock.openidm.authentication
->
OpenIDMの自動起動を設定する。
# cd /usr/local/openidm/bin
# ./create-openidm-rc.sh
# cp -p openidm /etc/init.d
# ls -l /etc/init.d/openidm
# chkconfig --add openidm
# chkconfig openidm on
# chkconfig --list openidm
openidm 0:off 1:off 2:on 3:on 4:on 5:on 6:off
0 件のコメント:
コメントを投稿