Sun Java System Directory Server Enterprise Edition 6.0 Migration Guide

Manually Uninstalling 1.1 Core and Instances from Solaris

Use the instructions provided in this section to manually uninstall Core from a Solaris machine.


Note –

In this section, Identity Synchronization for Windows locations are described in the following manner:

<serverRoot \>/ isw-<hostname \>

where <serverRoot \> represents the parent directory of the Identity Synchronization for Windows installation location.

For example, if you installed Identity Synchronization for Windows in /var/Sun/mps/isw-< example\>, the < serverRoot\> would be /var/Sun/mps.


ProcedureTo Manually Uninstall Core From a Solaris Machine:

  1. Stop all Identity Synchronization for Windows Java processes by typing /etc/init.d/isw stop into a terminal window.

    If the preceding command does not stop all of the Java processes, type the following commands.

    /usr/ucb/ps -gauxwww | grep java
    kill -s SIGTERM process IDs from preceding command
    
  2. Stop Message Queue.

    1. Type the following command to stop the Message Queue broker.

      /etc/init.d/imq stop

    2. Type the following commands to stop any remaining imq processes.

      * ps -ef | grep imqbroker
      * kill -s SIGTERM process IDs from preceding command
      
    3. Use one of the following methods to uninstall the broker packages and directories.

      • Use the Message Queue broker uninstall script to uninstall the broker. This script is located in the Identity Synchronization for Windows instance directory on the host where you installed Core.

        serverRoot/isw-hostname/imq_uninstall
      • Manually uninstall the packages and directories.

        Use the pkgrm command to remove the following packages.

        SUNWaclg
        SUNWiqum
        SUNWiqjx
        SUNWiqlen
        SUNWxsrt
        SUNWiqu
        SUNWjaf
        SUNWiqfs
        SUNWjhrt
        SUNWiqdoc
        SUNWiquc
        SUNWiqsup
        SUNWiqr
        SUNWjmail

        Use the rm -rf command to remove the following directories.

        /etc/imq
        /var/imq
        /usr/bin/imq*
  3. To remove the Identity Synchronization for Windows 1.1 Solaris packages, run pkgrm package-name for each of the packages listed in Manually Uninstalling 1.1 Core and Instances from Solaris.

    The following example shows the use of pkgrm to uninstall packages.

    pkgrm SUNWidscm SUNWidscn SUNWidscr SUNWidsct SUNWidsoc

    Package Name 

    Description 

    SUNWidscm

    Sun ONE Directory Server Identity Synchronization package for Core components and Connectors.

    SUNWidscn

    Sun ONE Directory Server Identity Synchronization package for Console help files.

    SUNWidscr

    Sun ONE Directory Server Identity Synchronization package for Core Components. 

    SUNWidsct

    Sun ONE Directory Server Identity Synchronization package for Connectors. 

    SUNWidsoc

    Sun ONE Directory Server Identity Synchronization package for Object Cache. 

    Type the following command to verify that all of the packages were removed.

    pkginfo | grep -i "Identity Synchronization"

    Note –

    Run the pkgrm package-name command again to check if there are still existing packages due to dependencies.


  4. Remove the Directory Server Plugin.

    1. Open the Directory Server Console and select the Configuration tab.

    2. In the left pane, expand the Plugins node and select the pswsync node.

    3. In the right pane, clear the Enable plug-in check box.

    4. Click Save.

    5. From the Directory Server Console, locate and remove the following entry from the Configuration Directory:

      cn=pswsync,cn=plugins,cn=config

    6. Stop Directory Server.

    7. Remove the Plugin binary by typing the following command.

      rm -f serverRoot/lib/psw-plugin.so

    8. Restart Directory Server.

  5. Back-up (copy and rename) the current productregistry file located in /var/sadm/install/productregistry.

  6. Manually edit the productregistry file in /var/sadm/install/ to remove the following entries, if present:


    Note –
    • For best results, use an XML editor. Alternatively, you can use a standard text editor.

    • Some of the following components may not be included in your file.

    • You must delete the beginning tag (<compid\>), ending tag (</compid\>), and all contents in-between both tags). Ellipses are used in the following list to represent any additional text, or tags that are included as part of these tags. See the example on Manually Uninstalling 1.1 Core and Instances from Solaris.


    • <compid\>Identity Synchronization for Windows . . . </compid\>

    • <compid\>Core . . . </compid\>

    • <compid\>unistaller . . . </compid\>

    • <compid\>wpsyncwatchdog . . . </compid\>

    • <compid\>setenv . . . </compid\>

    • <compid\>Create DIT . . . </compid\>

    • <compid\>Extend Schema . . . </compid\>

    • <compid\>resources . . . </compid\>

    • <compid\>CoreComponents . . . </compid\>

    • <compid\>Connector . . . </compid\>

    • <compid\>DSConnector . . . </compid\>

    • <compid\>Directory Server Plugin . . . </compid\>

    • <compid\>DSSubcomponents . . . </compid\>

    • <compid\>ObjectCache . . . </compid\>

    • <compid\>ObjectCacheDLLs . . . </compid\>

    • <compid\>SUNWidscr . . . </compid\>

    • <compid\>SUNWidscm . . . </compid\>

    • <compid\>SUNWidsct . . . </compid\>

    • <compid\>SUNWidscn . . . </compid\>

    • <compid\>SUNWidsoc . . . </compid\>

    • <compid\>ADConnector . . . </compid\>

    The following is an example <compid\> tag. Remove <compid\>, </compid\>, and all the text and tags in-between.


    <compid\>Identity Synchronization for Windows
        <compversion\>1.1
              <uniquename\>Identity Synchronization for Windows</uniquename\>
               <compinstance\>1
                        <children\>
                            <compref\>ADConnector
                                <instance\>1
                                    <version\>1.1</version\>
                                </instance\>
                            </compref\>
                            <compref\>DSSubcomponents
                            . . .
    
            </compinstance\>
        </compversion\>
    </compid\>
    
                               
  7. Remove the following Identity Synchronization for Windows directories and files.

    1. From the installation location, type the following command.

      rm -rf serverRoot/isw-hostname
      
    2. To remove the bootstrap files, type the following command.

      rm -rf /etc/init.d/isw
  8. Clean up the configuration directory as follows:

    1. Run the following ldapsearch command against the configuration directory where Identity Synchronization for Windows Core is installed to locate the Identity Synchronization for Windows Console subtree:

      ldapsearch -D "cn=directory manager" -w < password \> -b o=netscaperoot "(nsnickname=isw)" dn


      Note –

      ldapsearch is located in Directory Server’s < serverRoot\>/shared/bin/ldapsearch. For example, /var/Sun/mps/shared/bin/ldapsearch


      The resulting entry should be similar to the following. Note that the entry always ends with o=NetscapeRoot.

      "cn=Sun ONE Identity Synchronization for Windows,cn=server group, cn=myhost.mydomain.com,ou=mydomain.com,o=NetscapeRoot"

    2. Use the Directory Server Console to remove the Identity Synchronization for Windows Console subtree and all subtrees below it.

  9. Clean up the Identity Synchronization for Windows configuration registry as follows:

    1. Run the following ldapsearch command to locate the Identity Synchronization for Windows configuration registry in Directory Server:

      ldapsearch -D "cn=directory manager" -w < password \> -b "dc=my,dc=domain" "(&(objectclass=iplanetservice)(ou=IdentitySynchronization))" dn

      The resulting entry should be similar to the following:

      "ou=IdentitySynchronization,ou=Services,dc=my,dc=domain"

    2. Use the Directory Server Console to remove the Identity Synchronization for Windows configuration registry and all subtrees below it.

  10. Clean up all other Console-related files as follows:

    1. Remove all the Console jar files by typing:

      rm -rf < serverRoot \>/java/jars/isw* For example, /var/Sun/mps/java/jars/isw*

    2. Remove all the Console servlet jar files by typing:

      rm -rf <serverRoot \>/bin/isw/ For example, /var/Sun/mps/bin/isw/