highlights here
This section has the following tasks to manage the portal server gateway:
Log into the Portal Server administration console as administrator.
Click the Secure Remote Access tab and click New Profile.
The New Profile page is displayed.
Enter the name of the new gateway profile.
Select the profile to use for creating the new profile from the drop-down list.
By default, any new profile that you create is based on the pre-packaged Default profile. If you have created a custom profile, you can select that profile from the drop-down list. The new profile inherits all the attributes of the selected profile.
The existing profile that is copied for the new one, copies the same port. Change the port for the new profile so that it does not conflict with the existing one.
Click OK.
The new profile is created and listed in the Profiles page.
Ensure that you change the port of the instance so that it does not clash with any existing port in use.
Telnet to the machine where the instance needs to be created. The default gateway instance is up and running at this machine.
Install AM-SDK in configure now mode.
Install Gateway using UI installer in configure now mode or select configure later mode.
Copy the /opt/SUNWportal/template/sra/GWConfig.properties.template file to a temporary location . For example, /tmp.
Modify the values as required.
The values should match the port numbers in the gateway instance for the new profile.
Once complete, run the following command:
./psadmin create-sra-instance -u amadmin -f <passwordfile> -S <template file location>.template -t gateway
Restart the Gateway with this gateway profile name to ensure the changes to take effect:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
For more information on starting and stopping the Gateway, see To Start the Gateway Instances. To configure the Gateway, see Chapter 8, Configuring the Secure Remote Access Gateway
Replace the key that is used to encrypt and decrypt passwords with the same string used for the first Gateway.
am.encryption.pwd= string_key_specified_in gateway-install
Replace the key that is the shared secret for application authentication module:
com.iplanet.am.service.secret= string_key_specified_in gateway-install
In /etc/opt/SUNWam/config/ums modify the following areas in serverconfig.xml to be consistent with the first installed instance of Portal Server:
<DirDN> cn=puser,ou=DSAME Users,dc=sun,dc=net</DirDN>
<DirPassword>string_key_specified_in gateway-install</DirPassword>
<DirDN>cn=dsameuser,ou=DSAME Users,dc=sun,dc=net</DirDN>
<DirPassword>string_key_specified_in gateway-install </DirPassword>
Restart Access Manager services.
By default, the Gateway starts as user noaccess.
After installing the Gateway and creating the required profile, run the following command to start the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
default — is the default gateway profile that is created during installation. You can create your own profiles later, and restart the Gateway with the new profile. See Creating a Gateway Profile.
Replace the <profile name> with an appropriate profile name to start other instances of the Gateway.
Restarting the server (the machine on which the Gateway instances are configured) restarts all instances of the Gateway.
Ensure that no backed up profiles are present in the /etc/opt/SUNWportal directory.
Run the following command to check if the Gateway is running on the specified port:
netstat -an | grep port-number
The default Gateway port is 443.
Use the following command to stop the Gateway:
./psadmin stop-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
Replace the <profile name> with an appropriate profile name to start other instances of the Gateway.
Run the following command to verify if any of the Gateway processes are still running:
/usr/bin/ps -ef | grep entsys
To Login to the Management Console in Sun Java System Portal Server 7.2 Administration Guide
Select the Secure Remote Access tab.
Click the Manage Instances submenu.
Under SRA Proxy instances, select an instance.
Restart the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
In a terminal window, connect as root and do one of the following:
Start the watchdog process:
./psadmin sra-watchdog -u uid -f password-filename -t instance-type on |
[--adminuser | -u] uid |
Specifies the administrator's distinguished name (DN) or user ID. |
[-passwordfile | -f] password-filename |
Specifies the administrator's password in the password file. |
[--type | -t] instance-type |
Specifies the type of the Secure Remote Access instance. Enter: gateway, nlproxy, or rwproxy. |
For information on watchdog command, see the Sun Java System Portal Server Command Line Reference Guide.
This creates an entry in the crontab utility and the watchdog process is now active. The watchdog monitors all running instances of a Gateway on a particular machine and Gateway port and restarts the Gateway if it goes down.
Login as root and edit the platform.conffile of the required Gateway instance:
/etc/opt/SUNWportal/platform.conf.gateway-profile-name |
Add the following entries:
gateway.virtualhost=fully-qualified-gateway-host gateway-ip-address fully- qualified-reverse-proxyhost
gateway.enable.customurl=true (This value is set to false by default.)
Restart the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
If these values are not specified, the Gateway defaults to normal behavior.
From the command-line, edit the following file:
/etc/opt/SUNWportal/platform.conf.gateway-profile-name |
Add the following entries:
http.proxyHost=proxy-host http.proxyPort=proxy-port http.proxySet=true |
Restart the Gateway to use the specified proxy for requests made to the server:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
Telnet to the machine where the instance needs to be created. The default gateway instance is up and running at this machine.
Copy the /opt/SUNWportal/template/sra/NLPConfig.properties.template file to a temporary location . For example, /tmp.
Modify the values as required in the file for the new profile.
Once complete, run the following command:
./psadmin create-sra-instance -u amadmin -f <passwordfile> -S <template file location>.template -t nlproxy
Start the new instance of the Netlet proxy with the required gateway profile name to ensure that the changes take effect:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t nlproxy
In a terminal window, connect as root and do one of the following:
Start the watchdog process:
psadmin sra-watchdog -u uid -f password-filename -t instance-type on
Enter nlproxy in place of the instance-type. For more information on this command, see the Sun Java Portal Server Command Line Reference Guide.
This creates an entry in the crontab utility and the watchdog process is now active. The watchdog monitors the Netlet proxy port and brings up the proxy if it goes down.
Start a Netlet proxy manually:
psadmin start-sra-instance -u uid -f password-filename -N sra-instance-name -t instance-type
Enter nlproxy in place of the instance-type. This the profile name corresponding to the required Netlet Proxy instance. For more information on this command, see the Sun Java Portal Server Command Line Reference Guide.
Telnet to the machine where the instance needs to be created. The default gateway instance is up and running at this machine.
Copy the /opt/SUNWportal/template/sra/GWConfig.properties.template file to a temporary location . For example, /tmp.
Modify the values as required in the file for the new profile.
Once complete, run the following command:
./psadmin create-sra-instance -u amadmin -f <passwordfile> -S <template file location>.template -t rwproxy
Start the new instance of the Rewirter Proxy with the required gateway profile name to ensure that the changes take effect:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t rwproxy
In a terminal window, connect as root and do one of the following:
Start the watchdog process:
psadmin sra-watchdog -u uid -f password-filename -t instance-type on
Enter rwproxy in place of the instance-type. For more information on this command, see the Sun Java Portal Server Command Line Reference Guide.
This creates an entry in the crontab utility and the watchdog process is now active. The watchdog monitors the Rewriter Proxy port and brings up the proxy if it goes down.
Start a Rewriter Proxy manually:
start-sra-instance -u uid -f password-filename -N sra-instance-name -t instance-type
Enter rwproxy in place of the instance-type. This the profile name corresponding to the required Rewritter Proxy instance. For more information on this command, see the Sun Java Portal Server Command Line Reference Guide.
Log in as root and edit the platform.conf file of the required Gateway instance:
/etc/opt/SUNWportal/platform.conf.gateway-profile-name
Add the following entries:
gateway.virtualhost=fully-qualified-gateway-host gateway-ip-address fully- qualified-reverse-proxyhost
gateway.enable.customurl=true (This value is set to false by default.)
gateway.httpurl=http reverse-proxy-URL
gateway.httpsurl=https reverse-proxy-URL
gateway.httpurl is used to rewrite the response for the request received at the port which is listed as HTTP port in the gateway profile.
gateway.httpsurl is used to rewrite the response for the request received at the port which is listed as HTTPS port in the gateway profile.
Restart the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
If these values are not specified, the Gateway defaults to normal behavior.
Login to the Access Manager administration console as administrator.
Select the required organization.
Select Services from the View drop-down box.
The services are displayed.
Click Authentication Configuration.
The Service Instance List is displayed.
Click Gatewaypdc.
The Gatewaypdc properties page is displayed.
Click Edit.
The Add Module page is displayed.
Select Module Name and set Flag to Required.
Click OK.
Click Save after adding one or more modules.
Click Save in the gatewaypdc properties page.
Restart the Gateway for the changes to take effect:
gateway-install-location/SUNWportal/bin/psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
Login as root and edit the platform.conf file of the required Gateway instance:
/etc/opt/SUNWportal/platform.conf.gateway-profile-name |
Edit the following line:
gateway.allow.client.caching=true |
This value is set to true by default. Change the value to false to disable browser caching at the client side.
Restart the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
Modify the following areas in AMConfig.properties to synchronize with the first installed instance of Portal Server and Access Manager servers:
# The key that will be used to encrypt and decrypt passwords. am.encryption.pwd=t/vnY9Uqjf12NbFywKuAaaHibwlDFNLO <== REPLACE THIS STRING WITH THE ONE FROM FIRST PORTAL INSTALL
/* The following key is the shared secret for application auth module */ com.iplanet.am.service.secret=AQICxIPLNc0WWQRVlYZN0PnKgyvq3gTU8JA9 <== REPLACE THIS STRING WITH THE ONE FROM FIRST PORTAL INSTALL
In /etc/opt/SUNWam/config/ums modify the following areas in serverconfig.xml to be insync with the first installed instance of Portal Server and Access Manager server:
<DirDN> cn=puser,ou=DSAME Users,dc=sun,dc=net </DirDN> <DirPassword> AQICxIPLNc0WWQT22gQnGgnCp9rUf+FuaqpY <== REPLACE THIS STRING WITH THE ONE FROM FIRST PORTAL INSTALL </DirPassword> <DirDN> cn=dsameuser,ou=DSAME Users,dc=sun,dc=net </DirDN> <DirPassword> AQICxIPLNc0WWQT22gQnGgnCp9rUf+FuaqpY <== REPLACE THIS STRING WITH THE ONE FROM FIRST PORTAL INSTALL </DirPassword> |
Restart the Access Manager services.