The Secure Remote Access server has two interfaces for administration:
Portal Server management console
The Chapter 1, psadmin Utility, in Sun Java System Portal Server 7.2 Command-Line Reference command line utility
Most administration tasks are performed through the web-based Portal Server management console which can be accessed locally or remotely using a web browser. For more information, see Using the Portal Server Management Console in Sun Java System Portal Server 7.2 Administration Guide.
However, tasks such as file modification must be administered through the UNIX command-line interface.
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.
This chapter describes .... The following topics are discussed:
Federation Management enables users to aggregate their local identities so that they have one network identity. Federation Management uses the network identity to allow users to login at one service provider’s site and access other service providers' sites without having to re-authenticate their identity. This is referred to as single sign-on.
Federation management can be configured in open mode and secure mode on the Portal Server. The Portal Server Administration Guide describes how to configure federation management in open mode. Before configuring Federation management in secure mode, using Portal Server Secure Remote Access server, ensure that it works in open mode. If you want your users to use Federation Management from the same browser in both open and secure mode, they must clear the cookies and cache from the browser.
For detailed information on Federation Management, see the Access Manager Federation Management Guide.
A user authenticates to an initial service provider. Service providers are commercial or not-for-profit organizations that offer web-based services. This broad category can include internet portals, retailers, transportation providers, financial institutions, entertainment companies, libraries, universities, and governmental agencies.
The service provider uses a cookie to store the user’s session information in the client browser. The cookie also includes the user’s identity provider.
Identity providers are service providers that specialize in providing authentication services. As the administrating service for authentication, they also maintain and manage identity information. Authentication accomplished by an identity provider is honored by all service providers with whom they are affiliated.
When the user attempts to access a service that is not affiliated with the identity provider, the identity provider forwards the cookie to the unaffiliated service provider. This service provider can then access the identity provider called out in the cookie.
However, cookies cannot be read across different DNS domains. Therefore a Common Domain Cookie Service is used to redirect the service provider to the correct identity provider thus enabling single sign-on for the user.
The Federation resources, the service providers, identity providers, and the Common Domain Cookie Service (CDCS), are configured in the gateway profile based on where they reside. This section describes how to configure three scenarios:
When all resources are inside the corporate intranet
When all resources are not inside the corporate intranet or the identity provider resides in the Internet
When all resources are not inside the corporate intranet or the service provider is a third party residing in the Internet while the identity provider is protected by the Gateway.
In this configuration the service providers, identity providers and the Common Domain Cookie Service are deployed in the same corporate intranet and the identity providers are not published in the Internet Domain Name Server (DNS). The CDCS is optional.
In this configuration the Gateway points to the service provider, which is the Portal Server. This configuration is valid for multiple instances of the Portal Server.
Log into the Portal Server administration console as administrator.
Select the Secure Remote Access tab and select the appropriate gateway profile to modify its attributes.
The Edit Gateway Profile page is displayed.
Select the Core tab.
Select the Enable Cookie Management checkbox to enable cookie management.
Select the Security tab.
In the Portal Servers field, enter Portal Server names to use the relative URLs such as: /amserver or /portal/dt listed in the Non-Authenticated URLs list. For example:
http://idp-host:port/amserver/js
http://idp-host:port/amserver/UI/Login
http://idp-host:port/amserver/css
http://idp-host:port/amserver/SingleSignOnService
http://idp-host:port/amserver/UI/blank
http://idp-host:port/amserver/postLogin
http://idp-host:port/amserver/login_images
In the Portal Servers field, enter the Portal Server name. For example, /amserver.
Click Save.
Select the Security tab.
In the Non-Authenticated URLs list, add the federation resources. For example:
/amserver/config/federation
/amserver/IntersiteTransferService
/amserver/AssertionConsumerservice
/amserver/fed_images
/amserver/preLogin
/portal/dt
Click Add.
Click Save.
If web proxies are needed to reach the URLs listed in the Non-authenticated URLs list, select the Deployment tab.
In the Proxies for Domains and Subdomains field, enter the necessary web proxies.
Click Add.
Click Save.
From a terminal window, restart the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
In this configuration the identity providers, identity providers and the Common Domain Cookie Provider (CDCP) are not deployed in the corporate intranet or the identity provider is a third party provider residing the in Internet.
In this configuration the Gateway points to the service provider, which is the Portal Server. This configuration is valid for multiple instances of the Portal Server.
Log into the Portal Server administration console as administrator.
Select the Secure Remote Access tab and select the appropriate gateway profile to modify its attributes.
Select the Core tab.
Select the Enable Cookie Management checkbox to enable cookie management.
In the Portal Servers field, enter portal server names of the service provider to use the relative URLs such as: /amserver or /portal/dt listed in the Non-Authenticated URLs list.
http://idp-host:port/amserver/js
http://idp-host:port/amserver/UI/Login
http://idp-host:port/amserver/css
http://idp-host:port/amserver/SingleSignOnService
http://idp-host:port/amserver/UI/blank
http://idp-host:port/amserver/postLogin
http://idp-host:port/amserver/login_images
Click Save.
Click the Security tab.
In the Non-Authenticated URLs list, add the Federation resources. For example:
/amserver/config/federation
/amserver/IntersiteTransferService
/amserver/AssertionConsumerservice
/amserver/fed_images
/amserver/preLogin
/portal/dt
Click Add.
Click Save.
If web proxies are needed to reach the URLs listed in the Non-authenticated URLs list, select the Deployment tab.
In the Proxies for Domains and Subdomains field, enter information about the web proxies.
Click Add.
Click Save.
From a terminal window, restart the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>
In this configuration the identity providers, identity providers and the Common Domain Cookie Provider (CDCP) are not deployed in the corporate intranet or the service provider is a third party provider residing the in Internet and the identity provider is protected by the Gateway.
In this configuration the Gateway points to the identity provider, which is the Portal Server.
This configuration is valid for multiple instances of the Portal Server. This configuration is unlikely on the Internet, however, some corporate networks may have such a configuration within their intranet, that is the identity provider may reside in a subnet this is protected by a firewall and the service providers are directly accessible from within the corporate network.
Log into the Portal Server administration console as administrator.
Select the Secure Remote Access tab and select the appropriate gateway profile to modify its attributes.
Select the Core tab.
Select the Enable Cookie Management checkbox to enable cookie management.
In the Portal Servers field, enter the portal server name of the identity provider to use the relative URLs such as: /amserver or /portal/dt listed in the Non-Authenticated URLs list.
http://idp-host:port/amserver/js
http://idp-host:port/amserver/UI/Login
http://idp-host:port/amserver/css
http://idp-host:port/amserver/SingleSignOnService
http://idp-host:port/amserver/UI/blank
http://idp-host:port/amserver/postLogin
http://idp-host:port/amserver/login_images
Click Save.
Select the Security tab.
In the Non-authenticated URLs list, add the federation resources. For example:
/amserver/config/federation
/amserver/IntersiteTransferService
/amserver/AssertionConsumerservice
/amserver/fed_images
/amserver/preLogin
/portal/dt
Click Add.
Click Save.
If web proxies are needed to reach the URLs listed in the Non-authenticated URLs list, select the Deployment tab.
In the Proxies for Domains and Subdomains field, enter information about the web proxies.
Click Add.
Click Save.
From a terminal window, restart the Gateway:
./psadmin start-sra-instance –u amadmin – f <password file> –N <profile name>– t <gateway>