2009年 1月 08日 木曜日
本日の作業の備忘録として書き残しておきます。
使った環境は以下のとおり。
名前:agent
パスワード:password
# echo "password" > /tmp/passwd.txt
# pkgadd -d . SUNWamtc
# cd /opt/j2ee_agents/am_tomcat_agent/bin
# ./agentadmin --install
(デフォルト以外の値を入力した箇所のみ記載。)
Enter the Tomcat Server Config Directory Path
[/opt/jakarta-tomcat-5.5.9/conf]: /usr/home/wrldsrvr/apache-tomcat-5.5.17/conf
Access Manager Services Host: machineA
Enter the Agent Host name: machineB
Enter the $CATALINA_HOME environment variable: /usr/home/wrldsrvr/apache-tomcat-5.5.17
Enter the port number for Application Server instance [80]: 8080
Enter the Agent Profile name: agent
Enter the path to the password file: /tmp/passwd.txt
プロテクトの対象外となるパスを指定。
com.sun.identity.agents.config.notenforced.uri[0] = /ws/*フィルタモードは、URL_POLICY にする。(以下の行を追加)
com.sun.identity.agents.config.filter.mode[community]=URL_POLICY
リソース:http://machineB/community/*
対象:Access Manager アイデンティティー対象 グループ「allowedusers」
かなり簡易的ではあるが、これでアプリケーションへのアクセスをポリシーで制御できる。