2008年 12月 19日 金曜日 この方法については、以前からこちらのページに載っているので、すでにご覧になっている方も多いと思いますが、 2008年5月の時点で書かれているために、製品名やコマンド名が古いままですね。 やはり、現状に即して、しかも日本語で書かれた手順書があった方が 日本のユーザーにとってはより便利だと思うので、上記の wiki ページの内容をベースにしつつ、 実際に、OpenSSO Enterprise 8.0 と Web Agent 3.0 for Webserver 7 を使って設定した結果を元に、手順をまとめてみました。
使用した環境は以下のとおりです:
#chmod 755 agentadmin
Sun Java System Web Server Config Directory : /var/opt/SUNWwbsvr7/https-machine2.example.com/config OpenSSO server URL : http://machine1.example.com:8080/opensso Agent URL : http://machine2.example.com:80 Agent Profile name : WS7Agent Agent Profile Password file name : /export/agentpw.txt
# cd /workspace # unzip openssoenterprise_80.zip opensso/tools/ssoAdminTools.zip # cd opensso/tools # unzip ssoAdminTools.zip
# export JAVA_HOME=/usr/jdk/jdk1.5.0_16 # ./setup Path to config files of OpenSSO server (example: /opensso): Debug directory is /tmp. Log directory is /tmp. The version of this tools.zip is: Enterprise 8.0 Build 6(2008-October-31 09:07) The version of your server instance is: Enterprise 8.0 Build 6(2008-October-31 09:07) #最初に、OpenSSO の設定ディレクトリの場所を聞かれますので、 OpenSSO の設定を行った際に指定したディレクトリを入力します。
userpassword=エージェントのパスワード(/export/agentpw.txt に書いた値)必要に応じて、ファイル内の他の属性の値を変更、もしくは値が入ってない箇所について値を入れます。
com.sun.identity.agents.config.debug.level = com.sun.identity.agents.config.auth.connection.timeout =
#chmod 400 /export/passwd.txtそして、以下のコマンドを実行します。
# ./ssoadm create-agent -e / -b WS7Agent -t WebAgent -u amadmin -f /export/passwd.txt -D OpenSSOAgentConfiguration.properties エージェント設定が作成されました。 #これで、エージェントのプロファイルが OpenSSO 上に作成されました。
# ./ssoadm list-agents -e / -u amadmin -f /export/passwd.txt SecurityTokenService (id=SecurityTokenService,ou=agentonly,o=openssosp) wsc (id=wsc,ou=agentonly,o=openssosp) test2 (id=test2,ou=agentonly,o=openssosp) WS7Agent (id=WS7Agent,ou=agentonly,o=openssosp) agentAuth (id=agentAuth,ou=agentonly,o=openssosp) test3 (id=test3,ou=agentonly,o=openssosp) wsp (id=wsp,ou=agentonly,o=openssosp) test (id=test,ou=agentonly,o=openssosp) #このように WS7Agent が作成されていることが確認できます。
# ./ssoadm show-agent -e / -b WS7Agent -u amadmin -f /export/passwd.txt (出力結果の一部を抜粋) : com.sun.identity.agents.config.iis.filter.priority=HIGH com.sun.identity.agents.config.agent.logout.url[0]= com.sun.identity.agents.config.local.log.size=52428800 com.sun.identity.agents.config.cookie.name=iPlanetDirectoryPro com.sun.identity.agents.config.fqdn.check.enable=true com.sun.identity.agents.config.debug.file.size = 10000000 : #このようにエージェントの属性が表示されます。
# ./ssoadm update-agent -e / -b WS7Agent -u amadmin -f /export/passwd.txt -s -a "com.sun.identity.agents.config.debug.file.size=20000000" エージェント設定が更新されました。 #これで属性値が更新されました。show-agent サブコマンドで確認してみると、
#./ssoadm show-agent -e / -b WS7Agent -u amadmin -f /export/passwd.txt | grep debug.file.size com.sun.identity.agents.config.debug.file.size=20000000 #このように値が変更されていることが確認できます。
# ./ssoadm delete-agents -e / -s test -u amadmin -f /export/passwd.txt
次のエージェントが削除されました。
test
#
注意:エージェントを作成、変更、削除した場合は、変更内容を反映させるために Web Server を再起動してください。
ルール: サービスタイプ:URL ポリシーエージェント リソース名:http://machine2.example.com:80/* アクション: GET 許可 POST 許可 対象: OpenSSO アイデンティティー対象 選択したユーザー:amadmin のみ 条件:なし 応答プロバイダ:なしまた、検証用に amadmin 以外に amuser1 というユーザーを作成しておきます。