Sun Java System Portal Server 7.2 Developer's Guide

Restoring the Enterprise Sample Default Settings

The Enterprise Sample portal display profile file goes in the o=EnterpriseSample,dc=siroe,dc=com DN and the display profile file is in PortalServer-base/par-src/enterprise_sample/dp directory.

ProcedureTo Reload the Global Sample Display Profile

  1. Create the default portal PAR file.

    For example, typePortalServer-base/bin/psadmin create-par --dir PortalServer-base/par-src/default-portal/ /tmp/default-portal.par

  2. Import the default portal PAR file.

    For example, type PortalServer-base/bin/psadmin import -u amadmin -f password-file -p portal1 --overwrite /tmp/default-portal.par.

ProcedureTo Restore Enterprise Sample Display Profile

  1. Reinstall the Enterprise Sample to restore the Enterprise Sample display profile.

ProcedureTo Define the Login Failed Page

You can specify a custom login failed page when a user fails to authenticate to Portal Server.

  1. Login to the Access Manager console as administrator.

    By default, when you log in, Identity Management is selected in the location pane, and Organizations is selected in the Navigation pane.

  2. Select the EnterpriseSample organization.

  3. Select Services from the View menu.

  4. Click the properties icon arrow next to Core under Authentication Modules.

  5. Specify the login failed URL for the Default Failure Login URL.

    The Enterprise Sample specifies the default login failure URL for the AdventureSports Cafe as http://siroe.com/portal/dt?loginfailed=true. The JSP file that determines what to do with a login failure is PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/JSPTabContainer/anonymous.jsp.

  6. Customize the anonymous.jsp file in PortalServer-Datadir/portals/portal-ID/desktop/enterprise_sample/JSPTabContainer directory.

ProcedureTo Define the Logout Page

You can specify a custom logout page for users when they log out of the portal. This is accomplished by using the Access Manager Logout service with the goto parameter specified for the custom logout page. The Enterprise Sample uses this approach when a user logs out of the portal to redirect to the anonymous portal.

  1. Navigate to the directory Navigate to the directory

    /var/opt/SUNWportal/portals/portal-ID/desktop/enterprise_sample

  2. Edit the logout.jsp file.

    For example:


    onClick="location.href=’/amserver/UI/Logout?goto=/logout.html’"

    The Enterprise Sample specifies the custom logout page in the following files:


    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/logout.jsp
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/error.template
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/noneditablechannel.template
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/noprivilege.template
    PortalServer-DataDir/portals/portal-ID/desktop/enterprise_sample/error/unknownchannel.template