Sun Java System Portal Server 7 Installation Guide

Unconfiguring Portal Server

The example files 18-20 under PortalServer7-base/samples/psconfig directory can be used for unconfiguring portalserver and its subcomponents. By default, PortalServer7–base is /opt/SUNWportal.

Building an Unconfiguration XML file

This section describes the information required in the example file required for psadmin --unconfig to work.

<?xml version = "1.0" encoding = "UTF-8"?>
<PortalServerConfiguration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///opt/SUNWportal/lib/psconfig.xsd"
SchemaVersion="1.0">
         <Unconfigure ConfigurationHostName="@HOST.DOMAIN@"
Validate="true" UnconfigureAll="false">
               <AccessManager>
                    <UserCredentials
                    AdministratorUID="amadmin"
			            AdministratorUserPassword="@AMADMIN.PASSWORD@"
			            LDAPUserId="amldapuser"
			            LDAPUserIdPassword="@AMLDAPUSER.PASSWORD@"
			            DirectoryManagerDn="cn=Directory Manager"
			            DirectoryManagerPassword="@DIRMGR.PASSWORD@"/>
               </AccessManager>
               <PortalConfiguration>
                    <ComponentsToConfigure>
                          . . .
                          . . .
                          . . .
                    </ComponentsToConfigure>
               </PortalConfiguration>
          </Unconfigure>
</PortalServerConfiguration

Tokens To Replace

@HOST.DOMAIN@

The host and domain name of the machine on which configuration is occurring.

@AMADMIN.PASSWORD@

Administrator's password for the Access Manager instance with which Portal is to be configured.

@AMLDAPUSER.PASSWORD@

Internal LDAP User password for the Access Manager instance with which Portal is to be configured.

@DIRMGR.PASSWORD@

Administrator's password of the Directory Server with which Portal is to be configured.

If Portal Server is installed in a non-default directory, the file:///opt/SUNWportal/lib/psconfig.xsd must be modified accordingly in the <PortalServerConfiguration ...> tag.

If UnconfigureAll=”false” then the components specified in the <ComponentsToConfigure> . . . </ComponentsToConfigure> is unconfigured.

Specific instances of the components can be unconfigured. For example, the following portion of code removes the SearchServer “search1,” the instance “myInstance” of the portal “MyFirstPortal,” all instances of the portal “MySecondPortal” and the instance “default” of Gateway, Netlet Proxy and Rewriter Proxy.

      <PortalConfiguration>
                        <ComponentsToConfigure>
                             <component>portalserver</component>
                             <component>sracore</component>
                             <component>gateway</component>
                             <component>netletproxy</component>
                             <component>rewriterproxy</component>
                        </ComponentsToConfigure>
                        <SearchServer SearchServerID="search1">
                        </SearchServer>
                        <PortalServer PortalID="MyFirstPortal">
                             <Instance InstanceID="myInstance">
                             </Instance>
                        </PortalServer>
                        <PortalServer PortalID="MySecondPortal">
                        </PortalServer>
                        <Gateway Profile="default"/>
                        <NetletProxy Profile="default"/>
                        <RewriterProxy Profile="default"/>
                    </PortalConfiguration>