This chapter includes instructions on how to deploy and configure two instances of Sun OpenSSO Enterprise 8.0 on the service provider side. It begins with the installation of Sun Java™ System Application Server onto each host machine, followed by the deployment and configuration of the OpenSSO Enterprise WAR. This chapter contains the following sections:
In this section, we create a non-root user with the roleadd command in the Solaris Operating Environment on each OpenSSO Enterprise host machine and install Sun Java System Application Server 9.1 Update 1 using the non-root user. Use the following list of procedures as a checklist for completing the task.
To Create a Non-Root User on the OpenSSO Enterprise 1 Host Machine
To Install Application Server on the OpenSSO Enterprise 1 Host Machine
To Create a Non-Root User on the OpenSSO Enterprise 2 Host Machine
To Install Application Server on the OpenSSO Enterprise 2 Host Machine
We use roleadd rather than useradd for security reasons; roleadd disables the ability of the user to log in.
On our lab machines, the required Application Server patch is 117461–08. Results for your machine might be different. Read the latest documentation for your web container to determine if you need to install patches and, if so, what they might be. You can search for patches directly at http://sunsolve.sun.com. Navigate to the PatchFinder page, enter the patch number, click Find Patch, and download the appropriate patch for the OpenSSO Enterprise 1 host machine (osso1.sp-example.com) and the OpenSSO Enterprise 2 host machine (osso2.sp-example.com).
Log in to the osso1.sp-example.com host machine as a root user.
Run patchadd to see if the patch is already installed.
# patchadd -p | grep 117461-08 |
A series of patch numbers are displayed, and patch 117461–08 is present so there is no need to install any patches at this time.
Log out of the osso1.sp-example.com host machine.
Log in to the osso2.sp-example.com host machine as a root user.
Run patchadd to see if the patch is already installed.
# patchadd -p | grep 117461-08 |
A series of patch numbers are displayed, and patch 117461–08 is present so there is no need to install any patches at this time.
Log out of the osso1.sp-example.com host machine.
Log in to the osso1.sp-example.com host machine as a root user.
Create a new user with roleadd.
# roleadd -s /sbin/sh -m -g staff -d /export/osso80adm osso80adm |
(Optional) Verify that the user was created.
# cat /etc/passwd root:x:0:0:Super-User:/:/sbin/sh daemon:x:1:1::/: ... nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/: osso80adm:x:223830:10::/export/osso80adm:/sbin/sh |
(Optional) Verify that the user's directory was created.
# cd /export/osso80adm # ls local.cshrc local.profile local.login |
Create a password for the non-root user.
# passwd osso80adm New Password: nonroot1pwd Re-ener new Pasword: nonroot1pwd passwd: password successfully changed for osso80adm |
If you do not perform this step, you will not be able to switch user (su) when logged in as the non-root user.
Install Application Server and the appropriate CA root and CA-signed server certificates.
This procedure assumes you have just completed To Create a Non-Root User on the OpenSSO Enterprise 1 Host Machine and are still logged into the osso1.sp-example.com host machine as a root user.
Create a directory into which the Application Server bits can be downloaded and change into it.
# mkdir /export/AS91 # cd /export/AS91 |
Download the Sun Java System Application Server 9.1 Update 2 binary from the Sun Microsystems Product Download page to the /export/AS91 directory.
Grant the downloaded binary execute permission using the chmod command.
# chmod +x sjsas-9_1_02-solaris-sparc-ml.bin |
Install the software.
# ./sjsas-9_1_02-solaris-sparc-ml.bin -console |
When prompted, provide the following information.
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Press Enter to display the Software License Agreement. |
|
|
Type yes and press Enter. |
|
|
Enter /opt/SUNWappserver91 |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Enter domain1pwd and then re-enter domain1pwd. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the three default values. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value and begin the installation process. |
|
|
When installation is complete, an Installation Successful message is displayed: |
|
|
Press Enter to exit the installation program. |
Create a second Application Server domain for the non-root user.
The default domain created during the installation process is owned by root. We create a new domain for osso80adm, the non-root user, into which we will deploy OpenSSO Enterprise.
# cd /opt/SUNWappserver91/bin # su osso80adm # ./asadmin create-domain --domaindir /export/osso80adm/domains --adminport 8989 --user domain2adm --instanceport 1080 --domainproperties http.ssl.port=1081 ossodomain Please enter the admin password> domain2pwd Please enter the admin password again> domain2pwd Please enter the master password [Enter to accept the default]:> domain2master Please enter the master password again [Enter to accept the default]:> domain2master Using port 8989 for Admin. Using port 1080 for HTTP Instance. Using default port 7676 for JMS. Using default port 3700 for IIOP. Using port 1081 for HTTP_SSL. Using default port 3820 for IIOP_SSL. Using default port 3920 for IIOP_MUTUALAUTH. Using default port 8686 for JMX_ADMIN. Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file. Security Store uses: JKS 2008-09-14 18:21:15.907 GMT Thread[main,5,main] java.io.FileNotFoundException: derby.log (Permission denied) ------------------------------------------------- 2008-09-14 18:21:16.216 GMT: Booting Derby version The Apache Software Foundation - Apache Derby - 10.2.2.1 - (538595): instance c013800d-0118-e205-d50b-00000c0c0770 on database directory /export/osso80adm/domains/ossodomain/lib/databases/ejbtimer Database Class Loader started - derby.database.classpath='' Domain ossodomain created. |
Creating a non-root domain displays a FileNotFoundException. Please see Appendix G, Known Issues and Limitations.
Verify that the non-root user domain was created with the correct permissions using the following sub-procedure.
Change to the ossodomain directory.
# cd /export/osso80adm/domains/ossodomain |
List the contents of the directory.
# ls -la total 30 drwxr-xr-x 15 osso80adm staff 512 Sep 14 16:43 . drwxr-xr-x 3 osso80adm staff 512 Sep 14 16:43 .. drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 addons drwxr-xr-x 6 osso80adm staff 512 Sep 14 16:43 applications drwxr-xr-x 3 osso80adm staff 512 Sep 14 16:43 autodeploy drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 bin drwx------ 3 osso80adm staff 1024 Sep 14 16:43 config drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 docroot drwxr-xr-x 6 osso80adm staff 512 Sep 14 16:43 generated drwxr-xr-x 3 osso80adm staff 512 Sep 14 16:43 imq drwxr-xr-x 5 osso80adm staff 512 Sep 14 16:43 java-web-start drwxr-xr-x 8 osso80adm staff 512 Sep 14 16:43 jbi drwxr-xr-x 6 osso80adm staff 512 Sep 14 16:43 lib drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 logs drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 session-store |
The files and directories are owned by osso80adm.
Start ossodomain, the non-root user domain, using the following sub-procedure.
Verify that ossodomain has started with the following sub-procedure.
Access http://osso1.sp-example.com:8989/login.jsf from a web browser.
Log in to the Application Server console as the ossodomain administrator.
domain2adm
domain2pwd
When the Application Server administration console is displayed, it is verification that the non-root user was able to start the domain server.
Exit the console and close the browser.
Create a request for a CA-signed server certificate to secure communications between the soon-to-be-configured OpenSSO Enterprise load balancer and ossodomain using the following sub-procedure.
Generate a private/public key pair and reference it with the alias, opensso-sp-1.
opensso-sp-1 will be used in a later step to retrieve the public key which is contained in a self-signed certificate.
# cd /export/osso80adm/domains/ossodomain/config # keytool -genkey -noprompt -keyalg rsa -keypass domain2master -alias opensso-sp-1 -keystore keystore.jks -dname "CN=osso1.sp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US" -storepass domain2master |
Verify that the key pair was successfully created and stored in the certificate store.
# keytool -list -v -keystore keystore.jks -storepass domain2master Keystore type: jks Keystore provider: SUN Your keystore contains two entries. ... Alias name: opensso-sp-1 Creation date: Sep 14, 2008 Entry type: keyEntry Certificate chain length: 1 Certificate[1]: Owner: CN=osso1.sp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US Issuer: CN=osso-osso1.sp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US Serial number: 48cdb299 Valid from: Sun Sep 14 15:02:47 PDT 2008 until: Sat Dec 13 15:02:47 PDT 2008 Certificate fingerprints: MD5: 14:0F:88:BC:C8:6F:2C:8B:F0:A2:C2:F1:AF:FC:93:F1: SHA1: 9D:22:05:14:51:21:33:CB:06:36:25:FE:0A:B6:DF:45:EE:B1:19:86: |
The output of this command may list more than one certificate based on the entries in the keystore.
Generate a CA-signed server certificate request.
# keytool -certreq -alias opensso-sp-1 -keypass domain2master -keystore keystore.jks -storepass domain2master file opensso-sp-1.csr |
opensso-sp-1.csr is the server certificate request.
(Optional) Verify that opensso-sp-1.csr was created.
# ls -la opensso-sp-1.csr -rw-r--r-- 1 osso80adm staff 715 Sep 14 15:04 opensso-sp-1.csr |
Send osso-sp-1.csr to the CA of your choice.
The CA issues and returns a certified certificate named opensso-sp-1.cer.
Import ca.cer, the CA root certificate.
The root certificate must be imported into two keystores (keystore.jks and cacerts.jks) with Application Server. Use the same root certificate that you imported in 7.4 Enabling Secure Communication for the Directory Server User Data Instances. For more information, see 3.3 Obtaining Secure Socket Layer Certificates.
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore keystore.jks -storepass domain2master Owner: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore cacerts.jks -storepass ossomaster Owner: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
Replace the self-signed public key certificate (associated with the s1as alias) with the CA-signed server certificate.
# keytool -import -file opensso-sp-1.cer -alias opensso-sp-1 -keystore keystore.jks -storepass domain2master Certificate reply was installed in keystore |
(Optional) Verify that the self-signed public key certificate has been overwritten by the server certificate received from the CA.
# keytool -list -v -keystore keystore.jks -storepass domain2master The certificate indicated by the alias "osso-sp-1" is signed by CA. |
Change the certificate alias from the default s1as to the new opensso-sp-1 in the domain.xml file for the ossodomain domain.
The Application Server configuration file is domain.xml.
<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="1081" security-enabled="true" server-name="" xpowered-by="true"> <ssl cert-nickname="opensso-sp-1" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
Backup domain.xml before modifying it.
Modify the JVM options in your web container's configuration file using the following sub-procedure.
OpenSSO Enterprise is deployed with an embedded configuration data store (if desired). In order for the configuration data store to be created successfully, the following JVM options should be modified in the web container's configuration file. We will be modifying domain.xml again for this example.
Backup domain.xml before modifying it.
Change to the config directory.
# cd /export/osso80adm/domains/ossodomain/config |
Open domain.xml in a text editor and make the following changes:
Replace <jvm-options>-client</jvm-options> with <jvm-options>-server</jvm-options>.
Replace <jvm-options>-Xmx512m</jvm-options> with <jvm-options>-Xmx1024m</jvm-options>.
Save the file and close it.
Restart the ossodomain domain.
# cd /export/osso80adm/domains/ossodomain/bin # ./stopserv Server was successfully stopped. ./startserv admin username:domain2adm admin password:domain2pwd master password:domain2master Redirecting output to /export/osso80adm/domains/ossodomain/logs/server.log |
Verify that the certificate used for SSL communication is the root CA certificate.
Log out of the osso1.sp-example.com host machine.
Log in to the osso2.sp-example.com host machine as a root user.
Create a new user with roleadd.
# roleadd -s /sbin/sh -m -g staff -d /export/osso80adm osso80adm |
(Optional) Verify that the user was created.
# cat /etc/passwd root:x:0:0:Super-User:/:/sbin/sh daemon:x:1:1::/: ... nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/: osso80adm:x:223830:10::/export/osso80adm:/sbin/sh |
(Optional) Verify that the user's directory was created.
# cd /export/osso80adm # ls local.cshrc local.profile local.login |
Create a password for the non-root user.
# passwd osso80adm New Password: nonroot2pwd Re-ener new Pasword: nonroot2pwd passwd: password successfully changed for osso80adm |
If you do not perform this step, you will not be able to switch user (su) when logged in as the non-root user.
Install Application Server and the appropriate CA root and CA-signed server certificates.
This procedure assumes you have just completed To Create a Non-Root User on the OpenSSO Enterprise 2 Host Machine and are still logged into the osso2.sp-example.com host machine as a root user.
Create a directory into which the Application Server bits can be downloaded and change into it.
# mkdir /export/AS91 # cd /export/AS91 |
Download the Sun Java System Application Server 9.1 Update 2 binary from the Sun Microsystems Product Download page to the AS91 directory of the osso2.sp-example.com host machine.
Grant the downloaded binary execute permission using the chmod command.
# chmod +x sjsas-9_1_02-solaris-sparc-ml.bin |
Install the software.
# ./sjsas-9_1_02-solaris-sparc-ml.bin -console |
When prompted, provide the following information.
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Press Enter to display the Software License Agreement. |
|
|
Type yes and press Enter. |
|
|
Enter /opt/SUNWappserver91 |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Enter domain1pwd and then re-enter domain1pwd. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the three default values. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value and begin the installation process. |
|
|
When installation is complete, an Installation Successful message is displayed: |
|
|
Press Enter to exit the installation program. |
Create a second Application Server domain for the non-root user.
The default domain created during the installation process is owned by root. We create a new domain for osso80adm, the non-root user, into which we will deploy OpenSSO Enterprise.
# cd /opt/SUNWappserver91/bin # su osso80adm # ./asadmin create-domain --domaindir /export/osso80adm/domains --adminport 8989 --user domain2adm --instanceport 1080 --domainproperties http.ssl.port=1081 ossodomain Please enter the admin password> domain2pwd Please enter the admin password again> domain2pwd Please enter the master password [Enter to accept the default]:> domain2master Please enter the master password again [Enter to accept the default]:> domain2master Using port 8989 for Admin. Using port 1080 for HTTP Instance. Using default port 7676 for JMS. Using default port 3700 for IIOP. Using port 1081 for HTTP_SSL. Using default port 3820 for IIOP_SSL. Using default port 3920 for IIOP_MUTUALAUTH. Using default port 8686 for JMX_ADMIN. Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file. Security Store uses: JKS 2008-09-14 18:21:15.907 GMT Thread[main,5,main] java.io.FileNotFoundException: derby.log (Permission denied) ------------------------------------------------- 2008-09-14 18:21:16.216 GMT: Booting Derby version The Apache Software Foundation - Apache Derby - 10.2.2.1 - (538595): instance c013800d-0118-e205-d50b-00000c0c0770 on database directory /export/osso80adm/domains/ossodomain/lib/databases/ejbtimer Database Class Loader started - derby.database.classpath='' Domain ossodomain created. |
Creating a non-root domain displays a FileNotFoundException. Please see Appendix G, Known Issues and Limitations.
Verify that the non-root user domain was created with the correct permissions using the following sub-procedure.
Change to the ossodomain directory.
# cd /export/osso80adm/domains/ossodomain |
List the contents of the directory.
# ls -la total 30 drwxr-xr-x 15 osso80adm staff 512 Sep 14 16:43 . drwxr-xr-x 3 osso80adm staff 512 Sep 14 16:43 .. drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 addons drwxr-xr-x 6 osso80adm staff 512 Sep 14 16:43 applications drwxr-xr-x 3 osso80adm staff 512 Sep 14 16:43 autodeploy drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 bin drwx------ 3 osso80adm staff 1024 Sep 14 16:43 config drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 docroot drwxr-xr-x 6 osso80adm staff 512 Sep 14 16:43 generated drwxr-xr-x 3 osso80adm staff 512 Sep 14 16:43 imq drwxr-xr-x 5 osso80adm staff 512 Sep 14 16:43 java-web-start drwxr-xr-x 8 osso80adm staff 512 Sep 14 16:43 jbi drwxr-xr-x 6 osso80adm staff 512 Sep 14 16:43 lib drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 logs drwxr-xr-x 2 osso80adm staff 512 Sep 14 16:43 session-store |
The files and directories are owned by osso80adm.
Start ossodomain, the non-root user domain, using the following sub-procedure.
Verify that ossodomain has started with the following sub-procedure.
Access http://osso2.sp-example.com:8989/login.jsf from a web browser.
Log in to the Application Server console as the ossodomain administrator.
domain2adm
domain2pwd
When the Application Server administration console is displayed, it is verification that the non-root user was able to start the domain server.
Exit the console and close the browser.
Create a request for a CA-signed server certificate to secure communications between the soon-to-be-configured OpenSSO Enterprise load balancer and ossodomain using the following sub-procedure.
Generate a private/public key pair and reference it with the alias, opensso-sp-2.
opensso-sp-2 will be used in a later step to retrieve the public key which is contained in a self-signed certificate.
# cd /export/osso80adm/domains/ossodomain/config # keytool -genkey -noprompt -keyalg rsa -keypass domain2master -alias opensso-sp-2 -keystore keystore.jks -dname "CN=osso2.sp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US" -storepass domain2master |
Verify that the key pair was successfully created and stored in the certificate store.
# keytool -list -v -keystore keystore.jks -storepass domain2master Keystore type: jks Keystore provider: SUN Your keystore contains two entries. ... ... Alias name: opensso-sp-2 Creation date: Sep 14, 2008 Entry type: keyEntry Certificate chain length: 1 Certificate[1]: Owner: CN=osso2.sp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US Issuer: CN=osso2.sp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US Serial number: 48cdb299 Valid from: Sun Sep 14 15:02:47 PDT 2008 until: Sat Dec 13 15:02:47 PDT 2008 Certificate fingerprints: MD5: 14:0F:88:BC:C8:6F:2C:8B:F0:A2:C2:F1:AF:FC:93:F1: SHA1: 9D:22:05:14:51:21:33:CB:06:36:25:FE:0A:B6:DF:45:EE:B1:19:86: |
The output of this command may list more than one certificate based on the entries in the keystore.
Generate a CA-signed server certificate request.
# keytool -certreq -alias opensso-sp-2 -keypass domain2master -keystore keystore.jks -storepass domain2master file opensso-sp-2.csr |
opensso-sp-2.csr is the server certificate request.
(Optional) Verify that opensso-sp-2.csr was created.
# ls -la opensso-sp-2.csr -rw-r--r-- 1 osso80adm staff 715 Sep 14 15:04 opensso-sp-2.csr |
Send opensso-sp-2.csr to the CA of your choice.
The CA issues and returns a certified certificate named opensso-sp-2.cer.
Import ca.cer, the CA root certificate.
The root certificate must be imported into two keystores (keystore.jks and cacerts.jks) with Application Server. Use the same root certificate that you imported in 7.4 Enabling Secure Communication for the Directory Server User Data Instances. For more information, see 3.3 Obtaining Secure Socket Layer Certificates.
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore keystore.jks -storepass domain2master Owner: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore cacerts.jks -storepass domain2master Owner: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
Replace the self-signed public key certificate (associated with the s1as alias) with the CA-signed server certificate.
# keytool -import -file opensso-sp-2.cer -alias opensso-sp-2 -keystore keystore.jks -storepass domain2master Certificate reply was installed in keystore |
(Optional) Verify that the self-signed public key certificate has been overwritten by the CA-signed server certificate.
# keytool -list -v -keystore keystore.jks -storepass domain2master The certificate indicated by the alias "opensso-sp-2" is signed by CA. |
Change the certificate alias from the default s1as to the new opensso-sp-2 in the domain.xml file for the ossodomain domain.
The Application Server configuration file is domain.xml.
<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="1081" security-enabled="true" server-name="" xpowered-by="true"> <ssl cert-nickname="opensso-sp-2" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
Backup domain.xml before modifying it.
Modify the JVM options in your web container's configuration file using the following sub-procedure.
OpenSSO Enterprise is deployed with an embedded configuration data store (if desired). In order for the configuration data store to be created successfully, the following JVM options should be modified in the web container's configuration file. We will be modifying domain.xml again for this example.
Backup domain.xml before modifying it.
Change to the config directory.
# cd /export/osso80adm/domains/ossodomain/config |
Open domain.xml in a text editor and make the following changes:
Replace <jvm-options>-client</jvm-options> with <jvm-options>-server</jvm-options>.
Replace <jvm-options>-Xmx512m</jvm-options> with <jvm-options>-Xmx1024m</jvm-options>.
Save the file and close it.
Restart the ossodomain domain.
# cd /export/osso80adm/domains/ossodomain/bin # ./stopserv Server was successfully stopped. ./startserv admin username:domain2adm admin password:domain2pwd master password:domain2master Redirecting output to /export/osso80adm/domains/ossodomain/logs/server.log |
Verify that the certificate used for SSL communication is the root CA certificate.
Log out of the osso2.sp-example.com host machine.
The two instances of OpenSSO Enterprise are fronted by one load balancer (Load Balancer 2). Users will access OpenSSO Enterprise through the secure port 1081. Load Balancer 2 sends the user and agent requests to the server where the session originated. Secure Sockets Layer (SSL) is terminated and regenerated before a request is forwarded to the OpenSSO Enterprise servers to allow the load balancer to inspect the traffic for proper routing. Load Balancer 2 is capable of the following types of load balancing:
Cookie-based |
The load balancer makes decisions based on client's cookies. The load balancer looks at the request and detects the presence of a cookie by a specific name. If the cookie is detected in the request, the load balancer routes the request to the specific server to which the cookie has been assigned. If the cookie is not detected in the request, the load balancer balances client requests among the available servers. |
IP-based |
This is similar to cookie-based load balancing, but the decision is based on the IP address of the client. The load balancer sends all requests from a specific IP address to the same server. |
TCP |
The load balancer mainstreams session affinity. This means that all requests related to a TCP session, are forwarded to the same server. In this deployment example, Load Balancer 2 forwards all requests from a single client to exactly the same server. When the session is started and maintained by one client, session affinity is guaranteed. This type of load-balancing is applicable to the TCP-based protocols. |
This section assumes that you have already installed a load balancer. Before you begin, note the following:
The load balancer hardware and software used in the lab facility for this deployment is BIG-IP® manufactured by F5 Networks. If you are using different load balancer software, see the documentation that comes with that product for detailed settings information.
Contact your network administrator to obtain an available virtual IP address for the load balancer you want to configure.
Know the IP address of the load balancer hardware, the URL for the load balancer login page, and a username and password for logging in to the load balancer application.
Get the IP addresses for OpenSSO Enterprise 1 and OpenSSO Enterprise 2 by running the following command on each host machine:
# ifconfig -a |
Use the following list of procedures as a checklist for completing the task.
To Request a Certificate for OpenSSO Enterprise Load Balancer 2
To Install a CA Root Certificate to OpenSSO Enterprise Load Balancer 2
To Install the Server Certificate to OpenSSO Enterprise Load Balancer 2
To Create an SSL Proxy for SSL Termination at the OpenSSO Enterprise Load Balancer 2
You should already have a root certificate from the CA of your choice. Generate a request for a server certificate to send to the CA. For more information, see 3.3 Obtaining Secure Socket Layer Certificates.
Access https://is-f5.siroe.com, the BIG-IP load balancer login page, in a web browser.
Log in to the BIG-IP console as the administrator.
Click Configure your BIG-IP (R) using the Configuration Utility.
In the left pane, click Proxies.
Click the Cert-Admin tab.
On the SSL Certificate Administration page, click Generate New Key Pair/Certificate Request.
In the Create Certificate Request page, provide the following information.
lb2.sp-example.com
Deployment
lb2.sp-example.com
password
password
Click Generate Key Pair/Certificate Request.
On the SSL Certificate Request page, the request is generated in the Certificate Request field.
Save the text contained in the Certificate Request field to a file named lb-2.csr.
Log out of the console and close the browser.
Send lb-2.csr to the CA of your choice.
The CA issues and returns a signed server certificate named lb-2.cer.
Install the CA root certificate on Load Balancer 2 to ensure that a link between it and the CA can be maintained. Use the same root certificate that you imported in 7.4 Enabling Secure Communication for the Directory Server User Data Instances. For more information, see 3.3 Obtaining Secure Socket Layer Certificates.
Access https://is-f5.example.com, the BIG-IP load balancer login page, in a web browser.
Log in to the BIG-IP console as the administrator.
In the BIG-IP load balancer console, click Proxies.
Click the Cert-Admin tab.
Click Import.
In the Import Type field, choose Certificate, and click Continue.
Click Browse in the Certificate File field on the Install SSL Certificate page.
In the Choose File dialog, choose Browser.
Navigate to ca.cer and click Open.
In the Certificate Identifier field, enter openSSLCA.
Click Install Certificate.
On the Certificate openSSLCA page, click Return to Certificate Administration.
The root certificate named openSSLCA is now included in the Certificate ID list.
This procedure assumes you have received the CA-signed server certificate requested in To Request a Certificate for OpenSSO Enterprise Load Balancer 2, just completed To Install a CA Root Certificate to OpenSSO Enterprise Load Balancer 2, and are still logged into the load balancer console.
In the BIG-IP load balancer console, click Proxies.
Click the Cert-Admin tab.
The key lb2.sp-example.com is in the Key List.
In the Certificate ID column, click Install for lb2.sp-example.com.
In the Certificate File field, click Browse.
In the Choose File dialog, navigate to lb-2.cer, the CA-signed server certificate, and click Open.
Click Install Certificate.
On the Certificate lb2.sp-example.com page, click Return to Certificate Administration Information.
Verify that the Certificate ID indicates lb2.sp-example.com on the SSL Certificate Administration page.
Log out of the load balancer console.
Access https://is-f5.example.com, the BIG-IP load balancer login page, in a web browser.
Log in to the BIG-IP console as the administrator.
Click Configure your BIG-IP (R) using the Configuration Utility.
Create a Pool.
A pool contains all the backend server instances.
In the left pane, click Pools.
On the Pools tab, click Add.
In the Add Pool dialog, provide the following information.
OpenSSO-SP-Pool
Round Robin
Add the IP addresses and port numbers for both OpenSSO Enterprise host machines.
Use port number 1081.
Click Done.
Add a Virtual Server.
The virtual server presents an address to the outside world and, when users attempt to connect, it would forward the connection to the most appropriate real server.
If you encounter JavaScriptTM errors or otherwise cannot proceed to create a virtual server, try using Internet Explorer.
In the left frame, click Virtual Servers.
On the Virtual Servers tab, click Add.
In the Add a Virtual Server dialog box, provide the following information:
Enter the IP address for lb2.sp-example.com
1082
Continue to click Next until you reach the Pool Selection dialog box.
In the Pool Selection dialog box, assign the OpenSSO-SP-Pool Pool.
Click Done.
Add Monitors.
OpenSSO Enterprise comes with a JSP file named isAlive.jsp that can be contacted to determine if the server is down. Since we have not yet deployed OpenSSO Enterprise, isAlive.jsp cannot be used. In the following sub procedure, create a custom monitor that periodically accesses the Application Server instance(s). If desired, the monitor can be changed later to use isAlive.jsp.
Click the Monitors tab
Click the Basic Associations tab
Find the IP address for osso1.sp-example.com:1080 and osso2.sp-example.com:1080.
Mark the Add checkbox that corresponds to the IP address for both osso1.sp-example.com:1080 and osso2.sp-example.com:1080.
At the top of the Node column, choose the tcp monitor.
Click Apply.
Configure the load balancer for persistence.
In the left pane, click BIGpipe.
In the BIGpipe command window, type the following:
makecookie ip-address:port |
ip-address is the IP address of the osso1.sp-example.com host machine and port is the same machine's port number; in this case, 1081.
Press Enter to execute the command.
Something similar to Set-Cookie: BIGipServer[poolname]=692589248.36895.0000; path=/ is displayed. Save the numbered value (in this case, 692589248.88888.0000) for use in To Create a Site on OpenSSO Enterprise 1.
In the left pane, click BIGpipe again.
In the BIGpipe command window, type the following:
makecookie ip-address:port |
ip-address is the IP address of the osso2.sp-example.com host machine and port is the same machine's port number; in this case, 1081.
Press Enter to execute the command.
Something similar to Set-Cookie: BIGipServer[poolname]=692589248.12345.0000; path=/ is displayed. Save the numbered value (in this case, 692589248.99999.0000) for use in To Create a Site on OpenSSO Enterprise 1.
Log out of the load balancer console.
SSL communication is terminated at Load Balancer 2. The request is then re-encrypted and securely forwarded to OpenSSO Enterprise. When clients send an SSL-encrypted request to Load Balancer 2, it decrypts the request and re-encrypts it before sending it on to the OpenSSO Enterprise SSL port. Load Balancer 2 also encrypts the responses it receives back from OpenSSO Enterprise, and sends these encrypted responses back to the client. Towards this end create an SSL proxy for SSL termination and regeneration.
Use the same root certificate that you imported in 7.4 Enabling Secure Communication for the Directory Server User Data Instances. For more information, see 3.3 Obtaining Secure Socket Layer Certificates.
Access https://is-f5.example.com, the BIG-IP load balancer login page, in a web browser.
Log in to the BIG-IP console as the administrator.
Click Configure your BIG-IP (R) using the Configuration Utility.
In the left pane, click Proxies.
Under the Proxies tab, click Add.
In the Add Proxy dialog, provide the following information.
Check the SSL and ServerSSL checkbox.
The IP address of Load Balancer 2.
1081
The secure port number
The IP address of Load Balancer 2.
1082
The non-secure port number
Choose Local Virtual Server.
Choose lb2.sp-example.com.
Choose lb2.sp-example.com.
Check this checkbox.
Click Next.
On the page starting with “Insert HTTP Header String,” change to Rewrite Redirects and choose Matching.
Click Next.
On the page starting with “Server Chain File,” change to Server Trusted CA's File, select “ca.cer” from the drop-down list.
Click Done.
The new proxy server is added to the Proxy Server list.
Log out of the load balancer console.
Access https://lb2.sp-example.com:1081/index.html from a web browser.
If the Application Server index page is displayed, you can access it using the new proxy server port number and the load balancer is configured properly.
A message may be displayed indicating that the browser doesn't recognize the certificate issuer. If this happens, install the CA root certificate in the browser so that the browser recognizes the certificate issuer. See your browser's online help system for information on installing a root CA certificate.
Close the browser.
An OpenSSO Enterprise WAR will be deployed in the installed Application Server containers on both OpenSSO Enterprise host machines. Additionally, you will configure the deployed applications. Use the following list of procedures as a checklist for completing the tasks.
To Generate an OpenSSO Enterprise WAR on the OpenSSO Enterprise 1 Host Machine
To Deploy the OpenSSO Enterprise WAR as OpenSSO Enterprise 1
To Copy the OpenSSO Enterprise WAR to the OpenSSO Enterprise 2 Host Machine
To Deploy the OpenSSO Enterprise WAR File as OpenSSO Enterprise 2
As a root user, log in to the osso1.sp-example.com host machine.
Create a directory into which the OpenSSO Enterprise ZIP file can be downloaded and change into it.
# mkdir /export/OSSO_BITS # cd /export/OSSO_BITS |
Download the OpenSSO Enterprise ZIP file from http://www.sun.com/download/.
Unzip the downloaded file.
# unzip opensso_enterprise_80.zip # cd /export/OSSO_BITS/opensso # ls -al total 68 drwxr-xr-x 14 root root 512 Sep 8 11:13 ./ drwxrwxr-x 3 root root 512 Sep 15 13:06 ../ -rw-r--r-- 1 root root 1349 Sep 8 10:58 README drwxr-xr-x 6 root root 512 Sep 8 11:15 deployable-war/ drwxr-xr-x 2 root root 512 Sep 8 11:13 docs/ drwxr-xr-x 2 root root 512 Sep 8 11:13 fedlet/ drwxr-xr-x 5 root root 512 Sep 8 11:11 integrations/ drwxr-xr-x 2 root root 512 Sep 8 11:13 ldif/ drwxr-xr-x 4 root root 512 Sep 8 11:13 libraries/ -rw-r--r-- 1 root root 17003 Sep 8 10:58 license.txt drwxr-xr-x 2 root root 512 Sep 8 11:13 migration/ drwxr-xr-x 2 root root 512 Sep 8 11:13 patches/ drwxr-xr-x 2 root root 512 Sep 8 11:13 samples/ drwxr-xr-x 2 root root 512 Sep 8 11:14 tools/ drwxr-xr-x 8 root root 512 Sep 8 11:13 upgrade/ drwxr-xr-x 2 root root 2048 Sep 8 11:11 xml/ |
|
Switch to the non-root user.
# su osso80adm |
Create a staging area in the non-root user directory into which the WAR will be exploded.
# cd /export/osso80adm # mkdir osso-staging |
In the staging area, after exploding the WAR, you can modify the WAR contents to suit your needs, generate a new WAR, and deploy it on any number of remote host computers. Whenever you need to make changes to the WAR, you maintain the changes in this one staging area, and redeploy the modified WAR as many times as you want, on as many host machines as you need.
Explode the WAR file.
# cd osso-staging # jar xvf /export/OSSO_BITS/opensso/deployable-war/opensso.war |
Make the following modifications to the bootstrap.properties file.
By default, during the WAR deployment, OpenSSO Enterprise creates a bootstrap file in the user's home directory. The bootstrap.properties file points to the directory where all the OpenSSO Enterprise configurations will be created. With these modifications, OpenSSO Enterprise will create the bootstrap file in the directory you specify; in this case, /export/osso80adm/config. bootstrap.properties is located in /export/osso80adm/osso-staging/WEB-INF/classes.
Uncomment the line that reads #configuration.dir=.
Add the following value to the configuration.dir= property so it reads as follows.
configuration.dir=/export/osso80adm/config |
Regenerate the WAR.
# cd /export/osso80adm/osso-staging # jar cvf ../opensso.war * |
A new WAR file is created, including the modified bootstrap.properties.
Verify that the new WAR was created in the proper location and with the appropriate permissions.
# cd /export/osso80adm/osso-staging # /bin/rm -rf * # jar xvf ../opensso.war # ls -al total 498 drwxr-xr-x 7 osso80adm staff 512 Aug 5 13:44 . drwxr-xr-x 12 root sys 512 Aug 5 11:11 .. -rw------- 1 osso80adm staff 779 Aug 5 14:56 .asadmintruststore drwx------ 2 osso80adm staff 512 Aug 5 14:44 .gconf drwx------ 2 osso80adm staff 512 Aug 5 14:44 .gconfd -rw-r--r-- 1 osso80adm staff 144 Aug 5 17:02 .profile drwx------ 3 osso80adm staff 512 Aug 5 11:20 .sunw drwxr-xr-x 3 osso80adm staff 512 Aug 5 14:55 domains drwxr-xr-x 21 osso80adm staff 1024 Aug 5 13:43 osso-staging -rw-r--r-- 1 osso80adm staff 68884903 Aug 5 13:45 opensso.war -rw-r--r-- 1 osso80adm staff 136 Aug 5 17:02 local.cshrc -rw-r--r-- 1 osso80adm staff 157 Aug 5 17:02 local.login -rw-r--r-- 1 osso80adm staff 174 Aug 5 17:02 local.profile |
The opensso.war file is owned by osso80adm.
This procedure assumes you have just completed To Generate an OpenSSO Enterprise WAR on the OpenSSO Enterprise 1 Host Machine and are still logged into the osso1.sp-example.com host machine
On the osso1.sp-example.com host machine, switch to the non-root user osso80adm.
# /bin/su osso80adm |
Start the ossodomain domain.
# cd /export/osso80adm/domains/ossodomain/bin # ./startserv admin username:domain2adm admin password:domain2pwd master password:domain2master Redirecting output to /export/osso80adm/domains/ossodomain/logs/server.log |
Run asadmin deploy to deploy the OpenSSO Enterprise WAR.
# cd /opt/SUNWappserver91/bin # ./asadmin deploy --user domain2adm --host osso1.sp-example.com --port=8989 --contextroot opensso --name opensso --target server /export/osso80adm/opensso.war Please enter the admin password> domain2pwd Command deploy executed successfully. |
List the contents of the j2ee-modules directory to verify that the WAR file was successfully deployed.
# cd /export/osso80adm/domains/ossodomain/applications/j2ee-modules # ls -al total 6 drwxr-xr-x 3 osso80adm staff 512 Aug 5 14:01 . drwxr-xr-x 6 osso80adm staff 512 Aug 5 14:55 .. drwxr-xr-x 21 osso80adm staff 1024 Aug 5 14:01 opensso |
opensso exists in the directory and is owned by the non-root user osso80adm.
Log out of the osso1.sp-example.com host machine.
This procedure assumes you have completed To Generate an OpenSSO Enterprise WAR on the OpenSSO Enterprise 1 Host Machine.
As a root user, log in to the osso2.sp-example.com host machine.
Switch to the non-root user osso80adm.
# /bin/su osso80adm |
Change into the osso80adm directory.
# cd /export/osso80adm |
Copy opensso.war from the osso1.sp-example.com host machine to the osso80adm directory.
Verify that the WAR file was copied into the proper location and with the appropriate permissions.
# ls -al total 130552 drwxr-xr-x 6 osso80adm staff 512 Sep 5 14:14 . drwxr-xr-x 8 root sys 512 Sep 5 10:54 .. -rw-r--r-- 1 osso80adm staff 70 Sep 5 14:13 .asadminpass -rw------- 1 osso80adm staff 778 Sep 5 14:12 .asadmintruststore drwx------ 2 osso80adm staff 512 Sep 5 13:15 .gconf drwx------ 2 osso80adm staff 512 Sep 5 13:26 .gconfd -rw-r--r-- 1 osso80adm staff 144 Sep 5 15:00 .profile drwx------ 3 osso80adm staff 512 Sep 5 15:26 .sunw drwxr-xr-x 3 osso80adm staff 512 Sep 5 14:12 domains -rw-r--r-- 1 osso80adm staff 68884903 Sep 5 14:14 opensso.war -rw-r--r-- 1 osso80adm staff 136 Sep 5 15:00 local.cshrc -rw-r--r-- 1 osso80adm staff 157 Sep 5 15:00 local.login -rw-r--r-- 1 osso80adm staff 174 Sep 5 15:00 local.profile |
opensso.war exists in the directory and is owned by osso80adm.
This procedure assumes you have just completed To Copy the OpenSSO Enterprise WAR to the OpenSSO Enterprise 2 Host Machine and are still logged into the osso2.sp-example.com host machine
On the osso2.sp-example.com host machine, switch to the non-root user osso80adm.
# /bin/su osso80adm |
Start the ossodomain domain.
# cd /export/osso8/domains/ossodomain/bin # ./startserv admin username:domain2adm admin password:domain2pwd master password:domain2master Redirecting output to /export/osso80adm/domains/ossodomain/logs/server.log |
Run asadmin deploy to deploy the OpenSSO Enterprise WAR file.
# cd /opt/SUNWappserver91/bin # ./asadmin deploy --user domain2adm --host osso2.sp-example.com --port=8989 --contextroot opensso --name opensso --target server /export/osso80adm/opensso.war Please enter the admin password> domain2pwd Command deploy executed successfully. |
List the contents of the j2ee-modules directory to verify that the WAR file was successfully deployed.
# cd /export/osso80adm/domains/ossodomain/applications/j2ee-modules # ls -al total 6 drwxr-xr-x 3 osso80adm staff 512 Sep 5 14:01 . drwxr-xr-x 6 osso80adm staff 512 Sep 5 14:55 .. drwxr-xr-x 21 osso80adm staff 1024 Sep 5 14:01 opensso |
opensso exists in the directory and is owned by the non-root user osso80adm.
Log out of the osso2.sp-example.com host machine.
Access https://osso1.sp-example.com:1081/opensso from a web browser.
The OpenSSO Enterprise Configurator page is displayed for first time access.
Select Create New Configuration under Custom Configuration on the Configurator page.
The OpenSSO Enterprise Custom Configuration Wizard is displayed.
Provide the following information for the Default User [amAdmin] in Step 1: General and click Next.
ossoadmin
ossoadmin
Accept the default values in Step 2: Server Settings and click Next
Do the following in Step 3: Configuration Store and click Next
Select Remote Directory in Step 4: User Store Settings, provide the following information and click Next
Check the box.
lb2.sp-example.com
489
o=spusers.com
dsmanager
Select Generic LDAP.
Select No in Step 5: Site Configuration and click Next.
Provide the following information for the Default Agent User [amldapuser] in Step 6: Default Agent User and click Next.
agentuser
agentuser
Click Create Configuration on the Summary page.
The Configuration Complete page is displayed after configuration is completed.
Click Proceed to Login on the Configuration Complete page.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
If authentication succeeds and the OpenSSO Enterprise console is displayed, OpenSSO Enterprise has successfully accessed the embedded configuration data store.
(Optional) To verify that the config directory and the supporting bootstrap directory have been created with the proper permissions, do the following.
As a root user, log in to the osso1.sp-example.com host machine.
Examine the file system.
# cd /export/osso80adm # ls -al total 130556 drwxr-xr-x 8 osso80adm staff 512 Sep 6 19:32 . drwxr-xr-x 14 root sys 512 Sep 6 09:07 .. -rw-r--r-- 1 osso80adm staff 70 Sep 27 14:01 .asadminpass -rw------- 1 osso80adm staff 1527 Sep 6 18:27 .asadmintruststore -rw-r--r-- 1 osso80adm staff 144 Sep 11 17:02 .profile drwx------ 3 osso80adm staff 512 Sep 24 11:20 .sunw drwxr-xr-x 4 osso80adm staff 512 Sep 6 19:34 config drwxr-xr-x 4 osso80adm staff 512 Sep 6 18:26 domains -rw-r--r-- 1 osso80adm staff 136 Sep 11 17:02 local.cshrc -rw-r--r-- 1 osso80adm staff 157 Sep 11 17:02 local.login -rw-r--r-- 1 osso80adm staff 174 Sep 11 17:02 local.profile |
The config directory was created and is owned by non-root user osso80adm.
Log out of the osso1.sp-example.com host machine.
Access https://osso2.sp-example.com:1081/opensso from a web browser.
The OpenSSO Enterprise Configurator page is displayed for first time access.
Select Create New Configuration under Custom Configuration on the Configurator page.
The OpenSSO Enterprise Custom Configuration Wizard is displayed.
Provide the following information for the Default User [amAdmin] in Step 1: General and click Next.
ossoadmin
ossoadmin
Accept the default values in Step 2: Server Settings and click Next
Do the following in Step 3: Configuration Store and click Next
Select No in Step 5: Site Configuration and click Next.
Click Create Configuration on the Summary page.
The Configuration Complete page is displayed after configuration is completed.
Click Proceed to Login on the Configuration Complete page.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
If authentication succeeds and the OpenSSO Enterprise console is displayed, OpenSSO Enterprise has successfully accessed the embedded configuration data store.
(Optional) To verify that the config directory and the supporting bootstrap directory have been created with the proper permissions, do the following.
As a root user, log in to the osso2.sp-example.com host machine.
Examine the file system.
# cd /export/osso80adm # ls -al total 130556 drwxr-xr-x 8 osso80adm staff 512 Aug 6 19:32 . drwxr-xr-x 14 root sys 512 Aug 6 09:07 .. -rw-r--r-- 1 osso80adm staff 70 Mar 27 14:01 .asadminpass -rw------- 1 osso80adm staff 1527 Aug 6 18:27 .asadmintruststore -rw-r--r-- 1 osso80adm staff 144 Mar 11 17:02 .profile drwx------ 3 osso80adm staff 512 Mar 24 11:20 .sunw drwxr-xr-x 4 osso80adm staff 512 Aug 6 19:34 config drwxr-xr-x 4 osso80adm staff 512 Aug 6 18:26 domains -rw-r--r-- 1 osso80adm staff 136 Mar 11 17:02 local.cshrc -rw-r--r-- 1 osso80adm staff 157 Mar 11 17:02 local.login -rw-r--r-- 1 osso80adm staff 174 Mar 11 17:02 local.profile |
The config directory was created and is owned by non-root user osso80adm.
Log out of the osso2.sp-example.com host machine.
The Platform Service provides centralized configuration management for an OpenSSO Enterprise deployment. In this procedure, you configure the two OpenSSO Enterprise servers to work as a single unit. Once configured as a site, all client requests go through the configured load balancer. Use the following list of procedures as a checklist for completing this task.
It is not necessary to repeat this procedure on OpenSSO Enterprise 2.
Access https://osso1.sp-example.com:1081/opensso/console in a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
Under the Configuration tab, click Servers and Sites.
The Servers and Sites page is displayed.
Click New under Sites.
The New Site properties page is displayed.
Enter the following values for the load balancer and click OK.
sp-site
https://lb2.sp-example.com:1081/opensso
A new site called sp-site is displayed in the Sites list.
Click on the https://osso1.sp-example.com:1081/opensso server entry under the Servers list.
The Edit https://osso1.sp-example.com:1081/opensso page is displayed.
Assign sp-site from the Parent Site drop down list and click Save.
Click the Advanced tab.
Enter the number generated for the osso1.sp-example.com host machine as the value of the com.iplanet.am.lbcookie.value property and click Save.
The number was generated using the makecookie command in To Configure OpenSSO Enterprise Load Balancer 2.
Click Back to Server and Sites.
Click on the https://osso2.sp-example.com:1081/opensso server entry under the Servers list.
The Edit https://osso2.sp-example.com:1081/opensso page is displayed.
Assign sp-site from the Parent Site drop down list and click Save.
Click the Advanced tab.
Enter the number generated for the osso2.sp-example.com host machine as the value of the com.iplanet.am.lbcookie.value property and click Save.
The number was generated using the makecookie command in To Configure OpenSSO Enterprise Load Balancer 2.
Click Back to Server and Sites.
You should see sp-site under the Site Name column for both servers.
Log out of the OpenSSO Enterprise console.
As a root user, log in to the osso1.sp-example.com host machine.
Restart OpenSSO Enterprise for the changes to take effect.
# /bin/su osso80adm # cd /export/osso80adm/domains/ossodomain/bin # ./stopserv; ./startserv Server was successfully stopped. admin username: domain2adm admin password: domain2pwd master password: domain2master Redirecting output to /export/osso80adm/domains/ossodomain/logs/server.log |
As a root user, log in to the osso2.sp-example.com host machine.
Restart the web container for the changes to take effect.
# /bin/su osso80adm # cd /export/osso80adm/domains/ossodomain/bin # ./stopserv; ./startserv Server was successfully stopped. admin username: domain2adm admin password: domain2pwd master password: domain2master Redirecting output to /export/osso80adm/domains/ossodomain/logs/server.log |
Log out of both OpenSSO Enterprise host machines.
Access the load balancer at https://lb2.sp-example.com:1081/opensso/UI/Login.
If an error message is displayed indicating that the browser cannot connect to either osso1.sp-example.com or osso2.sp-example.com, the site configuration is not correct. If the site configuration is correct, all browser interactions will occur as expected.
When the OpenSSO Enterprise login page is displayed, verify that the browser URL still contains the Primary Site URL for the load balancer.
If it does not contain the Site URL, the site configuration is incorrect. If the site configuration is correct, all browser interactions will occur through the secure Site URL.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
A successful login occurs when the site configuration is correct.
Log out of the OpenSSO Enterprise console.
Configure OpenSSO Enterprise on the service provider side to recognize the Directory Server LDAP schema previously modified for SAML v2 attributes.
This procedure assumes you have completed 7.3 Modifying the Directory Server Schema.
Access https://lb4.sp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click the Access Control tab and / (Top-level Realm) on the Access Control page.
Click the Data Stores tab.
Under the Data Stores tab, click embedded.
The Generic LDAPv3 page is displayed.
Add the following values to properties on the Generic LDAPv3 page.
Type sunFMSAML2NameIdentifier in the New Value box of the LDAP User Object Class property and click Add.
Add the following values to the LDAP User Attribute property.
Type sun-fm-saml2-nameid-infokey in the New Value box and click Add.
Type sun-fm-saml2-nameid-info in the New Value box and click Add.
Click Save on the Generic LDAPv3 page.
Log out of the OpenSSO Enterprise console.