Sun Java System Portal Server 7.1 Configuration Guide

ProcedureTo Install Community Samples to an Organization Other Than the Community Sample Organization

  1. Create a custom directory for the configuration files.

    mkdir /tmp/mydir

  2. Copy the sample configuration files, input.properties and password.properties, in PortalServer-base/samples/portals/shared to the directory you created and remove the .template extension.


    cp /opt/SUNWportal/samples/portals/shared/input.properties.template 
    /tmp/mydir/input.properties 
       cp /opt/SUNWportal/samples/portals/shared/password.properties.template 
    /tmp/mydir/password.properties 
  3. Edit the input.properties file and replace all the tokens that begin and end with % with the appropriate Portal Server settings.


    ps.config.location=/etc/opt/SUNWportal
    ps.portal.id=portal1
    ps.access.url=http://domain-name:80/portal
    ps.webapp.uri=/portal
    ps.profiler.email=
    ps.profiler.smtp.host=
    search.access.url=http://domain-name:80/search1/search
    search.id=search1
    am.admin.dn=uid=amAdmin,ou=People,dc=sun,dc=com
    default.org.dn=dc=sun,dc=com
  4. Edit the password.properties file and replace tokens that begin and end with % with the appropriate administration password value.


    amadminPassword=adminpassword
    amldapuserPassword=amldapuserpassword
    userManagementPassword=%USER_MANAGEMENT_PASSWORD%

    Note –

    The userManagementPassword is used for only enterprise sample communications tab setup.


  5. The organization name CommunitySample is hardcoded in the community sample ant configuration file. Edit the /opt/SUNWportal/samples/portals/community/build.xml file and replace CommunitySample in the following line with your organization name:

    <property name="orgName" value="CommunitySample"/>

  6. The organization name CommunitySample is hardcoded in the par DPMapping.properties file. Edit the /opt/SUNWportal/par-src/community_sample/dp/DPMapping.properties file and replace CommunitySample in the following line with your organization name:

    organization=o=CommunitySample,dpnode

  7. The organization name CommunitySampleis hardcoded in the JSP file. Edit the /opt/SUNWportal/par-src/community_sample/pbfiles/templateBaseDir/community_sample /Login/content.jsp file and replace CommunitySample with your organization name.

  8. The user, test, is hardcoded in the community sample setup files. Edit the following files and replace the user, test, with your user name: /opt/SUNWportal/samples/portals/community/setup/CommunitySampleConfigRequest.xml and /opt/SUNWportal/samples/portals/community/setup/CommunitySampleSRAConfigRequest.xml.

  9. The user, commauthlessanonymous is hardcoded in the community configuration and JSP files. Edit the following files and replace the user commauthlessanonymous with your user name.

    • /opt/SUNWportal/samples/portals/community/build.xml

    • /opt/SUNWportal/samples/portals/community/setup/ CommunitySampleConfigRequest.xml

    • /opt/SUNWportal/samples/portals/community/setup/ CommunitySamplePortalRequest.input

  10. Install the Community Sample by running the following command:

    /usr/sfw/bin/ant -buildfile /opt/SUNWportal/samples/portals/community/build.xml -Dconfig.location=/tmp/mydir -logfile /tmp/mydir/community_sample_install.log