Create a custom directory for the configuration files.
mkdir /tmp/mydir
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 |
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 |
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% |
The userManagementPassword is used for only enterprise sample communications tab setup.
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"/>
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
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.
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.
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
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