Sun Java System Access Manager Policy Agent 2.2 Guide for SAP Enterprise Portal 6.0 and Web Application Server 6.40

Chapter 6 Uninstalling Policy Agent 2.2 for SAP Portal 6.0/Server 6.40

The agentadmin program is used for initiating the installation and uninstallation programs of Policy Agent 2.2 for SAP Portal 6.0/Server 6.40. The difference is that the installation program is started with the --install option while the uninstallation program is started with the --uninstall option. For more information about the agentadmin program, see Key Features and Tasks Performed With the J2EE agentadmin Program. The uninstallation program is similar to the installation program in that it provides step by step explanations of the information you need to enter. However, the uninstallation program has fewer and simpler steps.

The uninstallation process follows a series of tasks similar to the installation process. First, perform the pre-uninstallation (preparation) steps. Then, perform the uninstallation, itself. Finally, remove the agent files unless you want to configure a new agent using the same files.

Removing the agent files varies depending upon the format of the deliverable files used during the initial installation of the agent. Package formatted deliverable files are removed differently than files that are not package formatted.

You must access the PolicyAgent-base directory for uninstallation-related tasks. For more information about this directory, see J2EE Agent Directory Structure in Policy Agent 2.2.

Preparing to Uninstall Agent for SAP Portal 6.0/Server 6.40

Perform the applicable pre-uninstallation (preparation) tasks outlined in this section before uninstalling Policy Agent 2.2 for SAP Portal 6.0/Server 6.40. The uninstallation tasks are different depending upon the deployment container from which the agent is being uninstalled, as follows:

Perform the tasks that apply to the deployment container from which you want to uninstall the agent.

Pre-Uninstallation of Agent for SAP Portal 6.0/Server 6.40: SAP Enterprise Portal 6.0

Perform the tasks in this section if you are uninstalling Agent for SAP Portal 6.0/Server 6.40 from SAP Enterprise Portal 6.0. This section includes a variety of short tasks that remove the configuration performed during the installation and post-installation processes.

ProcedureTo Undeploy the Agent Software Delivery Archive for SAP Enterprise Portal 6.0

The Software Delivery Archive for this agent was deployed as a post-installation task. For details about that post-installation task, see To Deploy the Agent Software Delivery Archive for SAP Enterprise Portal 6.0.

  1. (Conditional) If the SAP Enterprise Portal 6.0 is not running, start it now.

  2. Start the Software Deployment Manager (SDM) Remote GUI.

    The following example provides the path to the SDM Remote GUI on UNIX systems:

    /usr/sap/SID/instanceName/SDM/program/RemoteGui.sh
    SID

    represents the SAP system ID.

    instanceName

    represents the SAP Enterprise Portal 6.0 instance.

  3. Log in to the GUI.

  4. Select the Undeployment tab.

  5. Select AmSAPAgent2.2.

  6. Click undeploy.

ProcedureTo Remove the Login Module for SAP Enterprise Portal 6.0

  1. (Conditional) If the SAP Enterprise Portal 6.0 is not running, start it now.

  2. Start the Visual Administration tool.

    The following example provides the path to the Visual Administration tool on UNIX systems:

    /usr/sap/SID/instanceName/j2ee/admin/go
    SID

    represents the SAP system ID.

    instanceName

    represents the SAP Enterprise Portal 6.0 instance.

  3. Log in to the Visual Administration tool.

  4. Select the Security Provider service.

  5. Select the User Management tab.

  6. Click Manage Security Stores.

  7. Select AmSAPEPLoginModule and click remove.

ProcedureTo Restore the Original State of the Ticket Template for SAP Enterprise Portal 6.0

This task description explains how to modify the ticket template of SAP Enterprise Portal 6.0 to the state it was in before it was modified during the post-installation of Agent for SAP Portal 6.0/Server 6.40.

Before You Begin

If necessary, start and log in to the Visual Administration tool as detailed in the preceding task description.

  1. Select the Security Provider service.

  2. Select the Policy Configurations tab.

  3. In the Components list, select the ticket authentication template.

  4. Click Add New

  5. Select BasicPasswordLoginModule.

  6. Click Modify.

  7. Move BasicPasswordLoginModule between the following two login modules:

    com.sap.security.core.server.jaas.EvaluteTicketLoginModule
    com.sap.security.core.server.jaas.CreateTicketLoginModule

    The new ticket authentication template appears as such:

    EvaluateTicketLoginModule

    SUFFICIENT

    BasicPasswordLoginModule

    REQUISITE

    CreateTicketLoginModule

    OPTIONAL

ProcedureTo Undeploy Protected Applications from SAP Enterprise Portal 6.0

  1. Undeploy any protected applications from SAP Enterprise Portal 6.0.

    Refer to SAP Enterprise Portal 6.0 documentation for more information.

ProcedureTo Restore the Deployment Descriptors of Applications on SAP Enterprise Portal 6.0

  1. Restore the web.xml file of each deployed application to its original state.

    If a backup copy of the web.xml file was created during post-installation of the agent, the same file can be used to restore the original configuration.

    For more information about how these deployment descriptors were configured during the post-installation of Agent for SAP Portal 6.0/Server 6.40, see Installing the Agent Filter for the Deployed Application on Agent for SAP Portal 6.0/Server 6.40.

ProcedureTo Remove the Agent Application from SAP Enterprise Portal 6.0

This task involves removing the agentapp.war file from SAP Enterprise Portal 6.0. This application is used by the agent to perform housekeeping tasks. This application was installed on the deployment container as a post-installation task. For more information, see Deploying the Agent Application for SAP Enterprise Portal 6.0.

  1. (Conditional) If the SAP Enterprise Portal 6.0 is not running, start it now.

  2. Start the Visual Administration tool.

    The following example provides the path to the Visual Administration tool on UNIX systems:

    /usr/sap/SID/instanceName/j2ee/admin/go
    SID

    represents the SAP system ID.

    instanceName

    represents the SAP Enterprise Portal 6.0 instance.

  3. Log in to the Visual Administration tool.

  4. Expand the Services node.

  5. Select the Deploy service.

  6. Expand the servlet_jsp node under the node of SAP Enterprise Portal 6.0 (Ensure that the SAP Enterprise Portal 6.0 node is for the instance that you are preparing to uninstall).

  7. Select the sap.com/agentapp application.

  8. Click Remove.

Next Steps

Before you uninstall Agent for SAP Portal 6.0/Server 6.40, ensure that you stop and start the SAP Portal 6.0/Server 6.40 instance protected by the agent.

Pre-Uninstallation of Agent for SAP Portal 6.0/Server 6.40: SAP Web Application Server 6.40

Perform the tasks in this section if you are uninstalling Agent for SAP Portal 6.0/Server 6.40 from SAP Web Application Server 6.40. This section includes a variety of short tasks that remove the configuration performed during the installation and post-installation processes.

ProcedureTo Undeploy the Agent Software Delivery Archive for SAP Web Application Server 6.40

The Software Delivery Archive for this agent was deployed as a post-installation task. For details about that post-installation task, see To Deploy the Agent Software Delivery Archive for SAP Web Application Server 6.40.

  1. (Conditional) If the SAP Web Application Server 6.40 is not running, start it now.

  2. Start the Software Deployment Manager (SDM) Remote GUI.

    The following example provides the path to the SDM Remote GUI on UNIX systems:

    /usr/sap/SID/instanceName/SDM/program/RemoteGui.sh
    SID

    represents the SAP system ID.

    instanceName

    represents the SAP Web Application Server 6.40 instance.

  3. Log in to the GUI.

  4. Select the Undeployment tab.

  5. Select AmSAPAgent2.2.

  6. Click undeploy.

ProcedureTo Remove the Login Module for SAP Web Application Server 6.40

  1. (Conditional) If the SAP Web Application Server 6.40 is not running, start it now.

  2. Start the Visual Administration tool.

    The following example provides the path to the Visual Administration tool on UNIX systems:

    /usr/sap/SID/instanceName/j2ee/admin/go
    SID

    represents the SAP system ID.

    instanceName

    represents the SAP Web Application Server 6.40 instance.

  3. Log in to the Visual Administration tool.

  4. Select the Security Provider service.

  5. Select the User Management tab.

  6. Click Manage Security Stores.

  7. Select AmSAPWASLoginModule and click remove.

ProcedureTo Undeploy Protected Applications from SAP Web Application Server 6.40

  1. Undeploy any protected applications from SAP Web Application Server 6.40.

    Refer to SAP Web Application Server 6.40 documentation for more information.

ProcedureTo Restore the Deployment Descriptors of Applications on SAP Web Application Server 6.40

  1. Restore the web.xml file of each deployed application to its original state.

    If a backup copy of the web.xml file was created during post-installation of the agent, the same file can be used to restore the original configuration.

    For more information about how these deployment descriptors were configured during the post-installation of Agent for SAP Portal 6.0/Server 6.40, see Installing the Agent Filter for the Deployed Application on Agent for SAP Portal 6.0/Server 6.40.

ProcedureTo Remove the Agent Application from SAP Web Application Server 6.40

This task involves removing the agentapp.war file from SAP Web Application Server 6.40. This application is used by the agent to perform housekeeping tasks. This application was installed on the deployment container as a post-installation task. For more information, see Deploying the Agent Application for SAP Web Application Server 6.40.

  1. (Conditional) If the SAP Web Application Server 6.40 is not running, start it now.

  2. Start the Visual Administration tool.

    The following example provides the path to the Visual Administration tool on UNIX systems:

    /usr/sap/SID/instanceName/j2ee/admin/go
    SID

    represents the SAP system ID.

    instanceName

    represents the SAP Web Application Server 6.40 instance.

  3. Log in to the Visual Administration tool.

  4. Expand the Services node.

  5. Select the Deploy service.

  6. Expand the servlet_jsp node under the node of SAP Web Application Server 6.40 (Ensure that the SAP Web Application Server 6.40 node is for the instance that you are preparing to uninstall).

  7. Select the sap.com/agentapp application.

  8. Click Remove.

Next Steps

Before you uninstall Agent for SAP Portal 6.0/Server 6.40, ensure that you stop and start the SAP Portal 6.0/Server 6.40 instance protected by the agent.

All Systems: Uninstalling Agent for SAP Portal 6.0/Server 6.40

This method of uninstalling Agent for SAP Portal 6.0/Server 6.40 applies to all the supported platforms.

This uninstallation process involves two phases as described in the following subsections.

Launching the Uninstallation Program of Agent for SAP Portal 6.0/Server 6.40

Perform the steps outlined in this section to launch the uninstallation program of Policy Agent 2.2 for SAP Portal 6.0/Server 6.40.

ProcedureTo Launch the Uninstallation Program of Agent for SAP Portal 6.0/Server 6.40

To launch the uninstallation program, perform the following steps:

  1. Change to the following directory:

    PolicyAgent-base/bin

    This directory contains the agentadmin program, which is used for uninstalling a J2EE agent and for performing other tasks. For more information on the agentadmin program, see Key Features and Tasks Performed With the J2EE agentadmin Program.

  2. Issue one of the following commands:


    ./agentadmin --uninstall

    or


    ./agentadmin --uninstallAll

    These two commands are different in that the --uninstallAll option removes all configured instances of the agent.

    After you issue one of the preceding commands, the uninstallation program launches and presents you with the first prompt as illustrated in the following section.

Using the Uninstallation Program of Agent for SAP Portal 6.0/Server 6.40

The steps in the uninstallation program are displayed in the following example. The interaction process of this uninstallation program is similar to that of the installation program. One difference is that the uninstallation program does not present a license agreement. For a more detailed explanation of the interaction process, see Using the Installation Program of Agent for SAP Portal 6.0/Server 6.40.

Example of Uninstallation Program Interaction in Agent for SAP Portal 6.0/Server 6.40


************************************************************************
Welcome to the Access Manager Policy Agent for SAP WebAS and Enterprise
Portal

************************************************************************


Enter the complete path to the directory of your SAP server ID. This directory
uniquely identifies the SAP instance that is secured by this Agent.
[ ? : Help, ! : Exit ]
Enter the SAP Server <SID> Directory Path
[/usr/sap/J2E/JC00/j2ee/cluster/server0]:
-----------------------------------------------
SUMMARY OF YOUR RESPONSES
-----------------------------------------------
SAP <SID> Directory : /usr/sap/SSO/JC00/j2ee/cluster/server0
Verify your settings above and decide from the choices below.
1. Continue with Uninstallation
2. Back to the last interaction
3. Start Over
4. Exit
Please make your selection [1]:

All Systems: Removing Files of Agent for SAP Portal 6.0/Server 6.40

Once all instances of Agent for SAP Portal 6.0/Server 6.40 have been removed as part of the uninstallation process, you must then remove the agent files unless you want to configure a new agent using the same files. Removing the agent files is a simple process. However, the process is different depending upon how the agent deliverables were originally installed.

Two task descriptions follow. In most cases the first task description applies. Perform the appropriate task.

ProcedureTo Remove Files of Agent for SAP Portal 6.0/Server 6.40 on All Systems — Non-Packages

Perform the steps in this task description if the following conditions applied when the agent was originally installed:

  1. Delete the PolicyAgent-base directory from the file system.

ProcedureTo Remove Files of Agent for SAP Portal 6.0/Server 6.40 on Solaris Systems — Packages

Perform the steps in this task description if both of the following conditions applied when the agent was originally installed:

  1. Issue the following command:

    # pkgrm SUNWamwas

    The preceding command removes the J2EE agent packages from the directory in which they were installed.