Beruflich Dokumente
Kultur Dokumente
Page no.
Agent Uninstallation
Sampleapp
4
8
9
10
10
13
Execute run.bat b <host name> from the bin directory of the server
installation.
.
run.sh -c <server-instance>
Ex: run.sh -c all starts 'all' server instance.
For help options : run the below command
D:\jboss-4.2.3.GA\bin>run.bat --help
=======================================================================
========
usage: run.bat [options]
options:
-h, --help
-V, --version
--D<name>[=<value>]
-d, --bootdir=<dir>
absolute
or url
-p, --patchdir=<dir>
absolute or u
rl
-n, --netboot=<url>
base
-c, --configuration=<name>
-B, --bootlib=<filename>
bootclasspat
h
-L, --library=<filename>
classpath
-C, --classpath=<url>
classpath
-P, --properties=<url>
url
-b, --host=<host or ip>
-g, --partition=<name>
(default=DefaultDomain)
-u, --udp=<ip>
-l, --log=<log4j|jdk>
===============================================================
================
******************************************************************
******
Welcome to the Opensso Policy Agent for JBoss Server 4.x./5.x
******************************************************************
******
Enter the complete path to the directory which is used by JBoss Server to store
its configuration Files. This directory uniquely identifies the JBoss
Server instance that is secured by this Agent.
[ ? : Help, ! : Exit ]
Enter the JBoss Server Config Directory Path
[C:\jboss-4.2.3\server\default\conf]: D:\jboss-4.2.3.GA\server\default\conf
Enter the complete path to the directory where JBoss Server home directory is
stored
[ ? : Help, < : Back, ! : Exit ]
Enter the JBoss Server Home Directory Path [D:\jboss-4.2.3.GA]:
Enter the URL where the OpenSSO server is running. Please include the
deployment URI also as shown below:
(http://opensso.sample.com:58080/opensso)
[ ? : Help, < : Back, ! : Exit ]
OpenSSO server URL: http://opensso1.sun.com:8080/opensso
Enter the Agent URL. Please include the deployment URI also as shown below:
(http://agent1.sample.com:1234/agentapp)
[ ? : Help, < : Back, ! : Exit ]
Agent URL: http://d-122008.sun.com:8080/agentapp
Enter the Agent profile name
[ ? : Help, < : Back, ! : Exit ]
Enter the Agent Profile name: jboss_qa
Enter the path to a file that contains the password to be used for identifying
the Agent.
[ ? : Help, < : Back, ! : Exit ]
Enter the path to the password file: c:\password.txt
Indicate the specified server instance runs with Java security manager
permissions.
[ ? : Help, < : Back, ! : Exit ]
Specify whether the chosen server instance runs with Java security manager
permissions. [false]:
----------------------------------------------SUMMARY OF YOUR RESPONSES
----------------------------------------------JBoss Server Config Directory : D:\jboss-4.2.3.GA\server\default\conf
JBoss Server Home Directory : D:\jboss-4.2.3.GA
OpenSSO server URL : http://opensso1.sun.com:8080/opensso
perties
Agent Configuration file location
D:/jbossagent2/j2ee_agents/jboss_v42_agent/Agent_001/config/OpenSSOAgentC
onfiguration
.properties
Agent Audit directory location:
D:/jbossagent2/j2ee_agents/jboss_v42_agent/Agent_001/logs/audit
Agent Debug directory location:
D:/jbossagent2/j2ee_agents/jboss_v42_agent/Agent_001/logs/debug
Install log file location:
D:/jbossagent2/j2ee_agents/jboss_v42_agent/installer-logs/audit/install.log
Thank you for using OpenSSO Policy Agent 3.0.
2.2 Agent Setup does the following:
1. Deploys agentapp.war in the server instance's deploy directory.
Example: D:/jboss-4.2.3/server/default/deploy/agentapp.war
2. Copies am-login-config-service.xml to server instance's deploy directory.
Example: D:/jboss-4.2.3/server/default/deploy/am-login-configservice.xml
3. Copies am-login-config.xml to server instance's conf directory.
Example D:/jboss-4.2.3/server/default/conf/am-login-config.xml
4. Copies setaAentClasspath script file pertaining to the server instance to
JBOSS_HOME/bin directory. This sets JBOSS_CLASSPATH with agent's config
and locale directories.
Example: D:/jboss-4.2.3/bin/setAgentClasspathdefault.bat , where default
in the file name indicates the server instance name. If the server instance name is
xyz, then the file name will be setAgentClasspathxyz.bat (On Solaris, the file
extension is .sh)
5. Modifies jboss-service.xml in the server's instance. The changes included to
load agent.jar and amclientsdk.jar.
Example:
<classpath codebase="/j2ee_agents/jboss_v42_agent/lib" archives="agent.jar"/>
<classpath codebase="/j2ee_agents/jboss_v42_agent/lib"
archives="amclientsdk.jar"/>
6 . Optional : Based on user's selection if JBoss is running with java permissions,
then modfies server.policy file in the server's instance's conf diretcory. Adds java
permissions to agent codebase.
Example:
grant codeBase "file:d:\j2ee_agents\ jboss_v42_agent/lib/-" {
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.*";
permission java.lang.RuntimePermission "getClassLoader";
permission java.lang.RuntimePermission "shutdownHooks";
permission java.io.FilePermission d:\j2ee_agents\ jboss_v42_agent
\agent_001\config\-", "read";
permission java.util.PropertyPermission "*", "read,write";
permission java.io.FilePermission d:\j2ee_agents\ jboss_v42_agent \locale\-",
"read";
permission java.io.FilePermission d:\j2ee_agents\ jboss_v42_agent
\agent_001\logs\-,
"read,write";
permission java.net.SocketPermission "*", "connect,resolve";
permission java.util.logging.LoggingPermission "control";
permission java.io.FilePermission "null/serverconfig.xml", "read";
};
else
JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JBOSS_BOOT_CLASSPAT"
fi
if [ "x$JAVAC_JAR_FILE" != "x" ]; then
JBOSS_CLASSPATH="$JBOSS_CLASSPATH:$JAVAC_JAR_FILE"
fi
4. Agent Uninstallation
Goto JBOSS_AGENT_HOME/bin. Execute agentadmin -uninstall
User needs to give JBoss server instance's configuration directory as the input.
A sample is shown below:
D:\jbossagent2\j2ee_agents\jboss_v42_agent\bin>agentadmin --uninstall
******************************************************************
******
Welcome to the Opensso Policy Agent for JBoss Server 4.x./5.x.
******************************************************************
******
Enter the complete path to the directory which is used by JBoss Server to store
its configuration Files. This directory uniquely identifies the JBoss
Server instance that is secured by this Agent.
[ ? : Help, ! : Exit ]
Enter the JBoss Server Config Directory Path
[C:\jboss-4.2.3\server\default\conf]: D:\jboss-4.2.3.GA\server\default\conf
Enter the complete path to the directory where JBoss Server home directory is
stored
[ ? : Help, < : Back, ! : Exit ]
Enter the JBoss Server Home Directory Path [D:\jboss-4.2.3.GA]:
----------------------------------------------SUMMARY OF YOUR RESPONSES
----------------------------------------------JBoss Server Config Directory : D:\jboss-4.2.3.GA\server\default\conf
5. Sampleapp
agentsample is included. Please see readme.txt included in the sampleapp
directory in agent installation directory for instructions on creating the j2ee agent
profile, subjects , policies , deploying the sample application in the deploy
directory of server installation.
D:\jbossagent2\j2ee_agents\jboss_v42_agent\bin>agentadmin --custom-install
******************************************************************
******
Welcome to the Opensso Policy Agent for JBoss Server 4.x./5.x.
******************************************************************
******
Enter the complete path to the directory which is used by JBoss Server to store
its configuration Files. This directory uniquely identifies the JBoss
Server instance that is secured by this Agent.
[ ? : Help, ! : Exit ]
Enter the JBoss Server Config Directory Path
[C:\jboss-4.2.3\server\default\conf]: D:\jboss-4.2.3.GA\server\default\conf
Enter the complete path to the directory where JBoss Server home directory is
stored
[ ? : Help, < : Back, ! : Exit ]
Enter the JBoss Server Home Directory Path [D:\jboss-4.2.3.GA]:
Enter the URL where the OpenSSO server is running. Please include the
deployment URI also as shown below:
(http://opensso.sample.com:58080/opensso)
[ ? : Help, < : Back, ! : Exit ]
OpenSSO server URL: http://opensso1.sun.com:8080/opensso
Enter the Agent URL. Please include the deployment URI also as shown below:
(http://agent1.sample.com:1234/agentapp)
[ ? : Help, < : Back, ! : Exit ]
Agent URL: http://d-122008.sun.com:8080/agentapp
Enter a valid Encryption Key.
[ ? : Help, < : Back, ! : Exit ]
Enter the Encryption Key [UzkYmsyaz2891E3r5+/x+gOPapVATqZK]:
abcdefghijklmnopqrstuvwx
yz
******************************************************************
******
Welcome to the Opensso Policy Agent for JBoss Server 4.x./5.x
******************************************************************
******
Agent installation directory to be migrated from.
[ ? : Help, < : Back, ! : Exit ]
Enter the Agent installation directory to be migrated from:
D:\newWORKSPACE\opensso\p
roducts\j2eeagents\built\jboss_v42\scratch\j2ee_agents\jboss_v42_agent
Migrating Agent Instance ...
Creating a backup for file
D:\jboss-4.2.3.GA\server\default\conf/jboss-service.xml ...DONE.
Removing Agent parameters from
D:\jboss-4.2.3.GA\server\default\conf/jboss-service.xml file ...DONE.
Creating directory layout and configuring Agent file for Agent_001
instance ...DONE.
Generating audit log file name ...DONE.
Creating tag swapped OpenSSOAgentBootstrap.properties file for instance
Agent_001 ...DONE.
Adding Agent parameters to
D:\jboss-4.2.3.GA\server\default\conf/jboss-service.xml file ...DONE.
Thank you for using OpenSSO Policy Agent 3.0.