This chapter contains detailed instructions for the following tasks:
Use the following as your checklist for installing Web Server 1 and Web Policy Agent 1:
Import the root CA certificate into the Web Server 1 key store.
Configure the Web Policy Agent to use the new agent profile.
For this part of the deployment, you must have the JES 5 installer and Web Policy Agent installer mounted on the host Protected Resource 1. See 3.2 Downloading and Mounting the Java Enterprise System 2005Q4 Installer at the beginning of this manual.
As a root user, log into host ProtectedResource-1.
Start the Java Enterprise System installer with the -nodisplay option.
# cd /mnt/Solaris_sparc # ./installer -nodisplay |
When prompted, provide the following information:
(Optional) During installation, you can monitor the log to watch for installation errors. Example:
# cd /var/sadm/install/logs
# tail —f Java_Enterprise_System_install.B xxxxxx
Upon successful installation, enter ! to exit.
Verify that the Web Server is installed properly.
Start the Web Server administration server to verify it starts with no errors.
# cd /opt/SUNWwbsvr/https-admserv
# ./stop; ./start
Run the netstat command to verify that the Web Server ports are open and listening.
# netstat -an | grep 8888 *.8888 *.* 0 0 49152 0 LISTEN |
Go to the Web Server URL.
http://ProtectedResource-1.example.com:8888
Log in to the Web Server using the following information:
admin
web4dmin
You should be able to see the Web Server console. You can log out of the console now.
Start the Protected Resource 1 instance.
# cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com # ./stop; ./start |
Run the netstat command to verify that the Web Server ports are open and listening.
# netstat -an | grep 1080 *.1080 *.* 0 0 49152 0 LISTEN |
Go to the instance URL.
http://ProtectedResource-1.example.com:1080
You should see the default Web Server index page.
Due to a known problem with this version of the Web Policy Agent, you must start an X-display session on the server host using a program such as Reflections X or VNC, even though you use the command-line installer. For more information about this known problem, see http://docs.sun.com/app/docs/doc/819-2796/6n52flfoq?a=view#adtcd.
As a root user, log into to host ProtectedResource–1.
Download the Java System Web Policy Agents 2.2 package from the following website:
Unpack the downloaded package.
In this example, the package was downloaded into the directory /temp.
# cd /temp # gunzip sun-one-policy-agent-2.2-es6-solaris_sparc.tar.gz # tar —xvof sun-one-policy-agent-2.2-es6-solaris_sparc.tar |
Start the Web Policy Agents installer.
# ./setup -nodisplay
When prompted, provide the following information:
|
Press Enter. |
||
|
Press Enter. |
||
|
Enter y. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Enter
|
||
|
Enter 1080. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
For this example, enter the external-facing load balancer host name. Example: LoadBalancer-3.example.com |
||
|
Enter the load balancer HTTP port number. For this example, enter 90. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Enter the amldapuser password that was entered when Access Manager was installed. For this example, enter 4mld4puser . |
||
|
Enter the 4mld4puser password again to confirm it. |
||
|
Accept the default value. |
||
|
First, see the next (Optional) numbered step. When you are ready to start installation, press Enter. |
(Optional) During installation, you can monitor the log to watch for installation errors. Example:
# cd /var/sadm/install/logs # tail —f var/sadm/install/logs/ Sun_Java_tm__System_Access_Manager_Policy_Agent_install.Bxxxxxxxx |
Modify the AMAgent.properties file.
# cd /etc/opt/SUNWam/agents/es6/ config/_opt_SUNWwbsvr_https-ProtectedResource-1.example.com |
Make a backup of AMAgent.properties before setting the following property:
com.sun.am.policy.am.login.url = https://LoadBalancer-4.example.com:9443/distAuth/UI/Login?realm=users
Restart the Web Server.
# cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com # ./stop; ./start |
Examine the Web Server log for startup errors.
# /opt/SUNWwbsvr/https-ProtectedResource-1.example.com/logs # vi errors |
Start a new browser and go to the Access Manager URL.
Example: https://loadbalancer-3.example.com:9443/amserver/console
Log in to the Access Manager console using the following information:
amadmin
4m4dmin1
Create a referral policy in the top-level realm.
On the Access Control tab, under Realms, click example.com.
Click the Policies tab.
On the Policies tab for example.com-Policies, click New Referral.
In the New Policy page, provide the following information:
Referral URL Policy for users realm.
Mark the Yes checkbox.
On the same page, in the Rules section, click New.
Select a Service Type.
On the page “Step 1 of 2: Select Service Type for the Rule,” select URL Policy Agent (with resource name)
Click Next.
On the page “Step 2 of 2: New Rule,” provide the following information:
URL Rule for ProtectedResource-1
http://ProtectedResource-1.example.com:1080/*
Click Finish.
On the same page, in the Referrals section, click New.
In the New Referral — Sub Realm page, provide the following information:
Sub-Realm users
Type an asterisk (*), and then click Search.
In the list, choose users.
Click Finish.
On the New Policy page, click Create.
In the Policies tab for example.com — Policies, you should see the policy named “Referral URL Policy for users realm.”
Create a policy in the users realm.
Click Realms.
On the Access Control tab, under Realms, click the Realm Name users.
Click the Policies tab.
On the Policies tab for users-Policies, click New Policy.
In the New Policy page, provide the following information:
URL Policy for ProtectedResource-1
Mark the Yes checkbox.
On the same page, in the Rules section, click New.
On the page “Step 1 of 2: Select Service Type for the Rule,” click Next.
The Service Type “URL Policy Agent (with resource name) is the only choice.
On the page “Step 2 of 2: New Rule,” provide the following information:
URL Rule for ProtectedResource-1
Click the URL listed in the Parent Resource Name list: http://ProtectedResource-1.example.com:1080/*
The URL is automatically added to the Resource Name field.
Mark this checkbox, and select the Allow value.
Mark this checkbox, and select the Allow value.
Click Finish.
Create a new subject.
On the New Policy page, in the Subjects section, click New.
Select the subject type and then click Next.
On the page “Step 1 of 2: Select Subject Type,” select the “Access Manager Identity Subject” type.
On the page “Step 2 of 2: New Subject — Access Manager Identity Subject,” provide the following information:
Enter Test Subject.
Choose User, and then click Search. Four users are added to the Available list.
In the list, selecttestuser1, and then click Add.
The user testuser1 is added to the Selected list.
Click Finish.
In the New Policy page, click Create.
On the Policies tab for users-Policies, the new policy “URL Policy for ProtectedResource-1” is now in the Policies list.
Log out of the console.
Verify that an authorized user can access the Web Server 1.
Go to the following URL:
http://ProtectedResource-1.example.com:1080
Log in to Access Manager using the following information:
testuser1
password
You should see the default index.html page for Web Server 1.
The user testuser1 was configured in the test policy to be allowed to access Protected Resource 1.
Verify that an unauthorized user cannot access the Web Server 1.
Go to the following URL:
http://ProtectedResource-1.example.com:1080
Log in to Access Manager using the following information:
testuser2
password
You should see the message, “You're not authorized to view this page.”
The user testuser2 was not included in the test policy tat allows access to Protected Resource 1.
The Web Policy Agent on Protected Resource 1 connects to Access Manager servers through Load Balancer 3. The load balancer is SSL-enabled, so the agent must be able to trust the load balancer SSL certificate in order to establish the SSL connection. To do this, import the root CA certificate that issued the Load Balancer 3 SSL server certificate into the Web Policy Agent certificate store.
Obtain the root CA certificate, and copy it to ProtectedResource-1.
Copy the root CA certificate to Protected Resource 1.
Open a browser, and go to the Web Server 1 administration console.
http://ProtectedResource-1.example.com:8888
Log in to the Web Server 2 console using the following information:
admin
web4dmin
In the Select a Server field, select ProtectedResource-1.example.com, and then click Manage.
If a “Configuration files have not been loaded” message is displayed, it may be that the administration server has never been accessed, and so the configuration files have never been loaded. First click Apply, and then click Apply Changes. The configuration files are read, and the server is stopped and restarted.
Click the Security tab.
On the Initialize Trust Database page, enter a Database Password.
Enter the password again to confirm it, and then click OK.
In the left frame, click Install Certificate and provide the following information, and then click OK:
Choose Trusted Certificate Authority (CA).
password
OpenSSL_CA_Cert
/export/software/ca.cert
Click Add Server Certificate.
Click Manage Certificates.
The root CA Certificate name OpenSSL_CA_Cert is included in the list of certificates.
Click the Preferences tab.
Restart Web Server 2.
On the Server On/Off page, click Server Off. When the server indicates that the administration server is off, click Server On.
Configure the Web Policy Agent 1 to point to the Access Manager SSL port.
Edit the AMAgent.properties file.
# cd /opt/SUNWam/agents/es5/config/ _optSUNWwbsvr_https=ProtectedResource-1.example.com
Make a backup of the AMAgent.properties file before setting the following property:
# com.sun.am.naming.url = https://LoadBalancer-3.example.com:9443/amserver/namingservice
Save the file.
Restart Web Server 1.
# cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com # ./stop; ./start
Verify that an authorized user can access the Web Server 1.
Go to the following URL:
http://ProtectedResource-1.example.com:1080
Log in to Access Manager using the following information:
testuser1
password
You should see the default index.html page for Web Server 1.
The user testuser1 was configured in the test policy to be allowed to access Protected Resource 1.
Verify that an unauthorized user cannot access the Web Server 1.
Go to the following URL:
http://ProtectedResource-1.example.com:1080
Log in to Access Manager using the following information:
testuser2
password
You should see the message, “You're not authorized to view this page.”
The user testuser2 was not included in the test policy tat allows access to Protected Resource 1.
The web agent will, by default, use the account with the uid UrlAccessAgent to authenticate to Access Manager. Creating an agent profile is not a requirement for Web Policy Agents. You can use the default values and never change the Web Policy Agent user name. However, in certain cases, you might want to change these default values. For example, if you want to audit the interactions between multiple agents and the Access Manager server, you want be able to distinguish one agent from another. This would not be possible if all the agents used the same default agent user account. For more information, see the Sun Java System Access Manager Policy Agent 2.2 User’s Guide.
Create an agent profile on Access Manager.
This new account will be used by Web Policy Agent 1 to access the Access Manager server.
Go to Access Manage load balancer URL:
https://LoadBalancer-3.example.com:9443/amserver/UI/Login
Log in to the Access Manager console using the following information:
amadmin
4m4dmin1
On the Access Control tab, under Realms, click the realm name example.com.
Click the Subjects tab.
Click the Agents tab.
On the Agent page, click New.
On the New Agent page, provide the following information:
webagent-1
web4gent1
web4gent1
Choose Active.
Click Create.
The new agent webagent–1 is now display in the list of Agent Users.
Log in to as a root user to Protected Resource 1.
Run the cypt_util utility.
The utility encrypts the password.
# cd /opt/SUNWam/agents/bin # ./crypt_util web4gent1 BXxzBswD+PZdMRDRMXQQA==
Copy the encrypted password, and save it in a text file.
Edit the AMAgent.properties file.
# cd /etc/opt/SUNWam/agents/es6/ config/_opt_SUNWwbsvr_https-ProtectedResource-1.example.com |
Make a backup of AMAgent.properties you make the following change in the file:
com.sun.am.policy.am.password = webagent-1 com.sun.am.policy.am.password = BXxzBswD+PZdMRDRMXQQA==
Use the encrypted password obtained in the previous step.
Save the file.
Restart Web Server 1.
# cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com # ./stop; ./start
Verify that an authorized user can access the Web Server 1.
Go to the following URL:
http://ProtectedResource-1.example.com:1080
Log in to Access Manager using the following information:
testuser1
password
You should see the default index.html page for Web Server 1.
The user testuser1 was configured in the test policy to be allowed to access Protected Resource 1.
Verify that an unauthorized user cannot access the Web Server 1.
Go to the following URL:
http://ProtectedResource-1.example.com:1080
Log in to Access Manager using the following information:
testuser2
password
You should see the message, “You're not authorized to view this page.”
The user testuser2 was not included in the test policy tat allows access to Protected Resource 1.
You must have the WebLogic Application Server installer and the Sun J2EE Policy Agent installer mounted on Protected Resource 1.
Use the following as your checklist for installing Application Server 1 and the J2EE Policy Agent 1:
Obtain the Application Server installer from the BEA .
Start the installer.
# /download_directory/export/weblogic/server910_solaris32.bin |
Provide the following information when prompted:
|
Enter Next. |
|
|
Enter 1. |
|
|
Press Enter to accept the default value and continue. |
|
|
Enter 2. |
|
|
Press Enter to continue. |
|
|
Press Enter to accept the default value and continue. |
|
|
Press Enter to confirm the default value and continue. |
|
|
Press Enter. |
Create a new domain.
Start the BEA WebLogic Configuration Wizard.
# cd /usr/local/bea/weblogic91/common/bin # ./config.sh |
Provide the following information:
|
Press Enter to accept the default value 1. |
|
|
Press Enter to accept the default value 1. |
|
|
Press Enter to accept the default value and continue. |
|
|
Enter 2 to modify the user password. |
|
|
Enter w3bl0g1c. |
|
|
Enter 3 to confirm user password. |
|
|
Enter w3bl0g1c. |
|
|
Press Enter to accept the values and continue. |
|
|
Enter 2 to select Production Mode. |
|
|
Press Enter to accept the default value and continue. |
|
|
Enter 1 . |
|
|
Press Enter to Continue. |
|
|
Enter ApplicationServer-1. |
|
|
Enter 3 to modify the Listen port. |
|
|
Enter 1081. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Enter ProtectedResource-1. |
|
|
Press Enter to accept these values. |
|
|
Enter 1 to add a Unix machine. |
|
|
Enter ProtectedResource-2. |
|
|
Press Enter to accept these values. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Enter ProtectedResource-1. |
|
|
Press Enter to continue. |
|
|
Press Enter. |
Create two files necessary to automate Application Server 1 startup.
Create one file in the directory for the Application Server 1 administration server, and create one file in the Application Server 1 instance directory. The administrative user and password are stored in each file. Application Server 1 uses this information during server start-up. Without these files, Application Server 1 will fail to start. Application Server 1 encrypts the file, so there is no security risk even though you enter the user name and password in clear text.
# cd /usr/local/bea/user_projects/domains/ ProtectedResource-1/servers/AdminServer # mkdir security # cd security/ # cat > boot.properties username=weblogic password=w3bl0g1c ^D # cd /usr/local/bea/user_projects/domains/ ProtectedResource-1/servers/ApplicationServer-1/ # mkdir security # cd security/ # cat > boot.properties username=weblogic password=w3bl0g1c ^D |
Start the servers.
# cd /usr/local/bea/user_projects/domains/ ProtectedResource-1/bin/ # nohup ./startWebLogic.sh & #tail -f nohup.out ... # netstat -an | grep 7001 xxx.xx.72.151.7001 *.* 0 0 49152 0 LISTEN 127.0.0.1.7001 *.* 0 0 49152 0 LISTEN # # cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ # nohup ./startManagedWebLogic.sh ApplicationServer-1 http://ProtectedResource-1.example.com:7001 & # cd /usr/local/bea/user_projects/domains/ ProtectedResource-1/bin/ # netstat -an | grep 1081 xxx.xx.72.151.1081 *.* 0 0 49152 0 LISTEN 127.0.0.1.1081 *.* 0 0 49152 0 LISTEN xxx.xx.72.151.33425 xxx.xx.72.151.1081 49152 0 49152 0 ESTABLISHED xxx.xx.72.151.1081 xxx.xx.72.151.33425 49152 0 49152 0 ESTABLISHED |
Verify that Application Server 1 is up and running.
Go to the following URL:
http://ProtectedResource-1.example.com:7001/console
Log in to the Application Server 1 console using the following information:
weblogic
w3bl0g1c
Verify that you can successfully log into the console.
Under Domain Structure , expand the Environment object
Click Servers.
On the Summary of Servers page, verify that both AdminServer(admin) and ApplicationServer-1 are running and OK.
This new account will be used by J2EE Policy Agent 1 to authenticate to the Access Manager server.
Go to Access Manage load balancer URL:
https://LoadBalancer-3.example.com:9443/amserver/UI/Login
Log in to the Access Manager console using the following information:
amadmin
4m4dmin1
On the Access Control tab, under Realms, click the realm name example.com.
Click the Subjects tab.
Click the Agents tab.
On the Agent page, click New.
On the New Agent page, provide the following information:
j2eeagent-1
j2ee4gent1
j2ee4gent1
Choose Active.
Click Create.
The new agent j2eeagent–1 is now display in the list of Agent Users.
Log out of the Access Manager console.
Create a text file, and add the Agent Profile password to the file.
The J2EE Policy Agent installer requires this file for installation.
# cd /opt/j2ee_agents/amwl9_agent # cat > agent_pwd j2ee4gent1 ^D
Application Server 1 must be stopped when you install J2EE Policy Agent 1.
You must stop both the Application Server 1 instance and the administration server before installing J2EE Policy Agent 1.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ # ./stopManagedWebLogic.sh ApplicationServer-1 t3://localhost:7001 # cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # ./stopWebLogic.sh |
Unpack the J2EE Policy Agent bits.
# cd /opt # /usr/sfw/bin/gtar -xvf /export/software/SJS_Weblogic_9_agent_2.2.tar |
Start the J2EE Policy Agent installer.
# cd /opt/j2ee_agents/am_wl9_agent/bin # ./agentadmin --install
When prompted, provide the following information:
|
Press Enter to continue. Continue to press Enter until you reach the end of the License Agreement. |
||
|
Enter .
|
||
|
Enter ApplicationServer-1. |
||
|
Enter LoadBalancer-3.example.com. |
||
|
Enter 90. |
||
|
Enter http. |
||
|
Accept the default value. |
||
|
ProtectedResource-1.example.com |
||
|
Enter /usr/loca/bea/weblogic91. |
||
|
Enter 1081. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Enter j2eeagent-1. |
||
|
Enter /opt/j2ee_agent/am_w19_agent/agent_pwd. |
||
|
Accept the default value. |
||
|
Accept the default value. |
The J2EE Policy Agent installer creates a new file in the Application Server bin directory:
/usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ setAgentEnv_ApplicationServer-1.sh |
Modify the Application Server startup script to reference the new file.
As a root user, log into ProtectedResource–1.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ |
Make a backup of setDomainEnv.sh.
In setDomainEnv.sh, insert the following line at the end of the file:
. /usr/local/bea/user_projects/domains/ProtectedResource-1/ bin/setAgentEnv_ApplicationServer-1.sh |
This command references the file the installer created in the Application Server bin directory.
Save the setDomainEnv.shfile.
Change permissions for the setAgentEnv_ApplicationServer-1.sh file:
# chmod 755 setAgentEnv_ApplicationServer-1.sh
Start the Application Server administration server.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # nohup ./startWebLogic.sh & # tail -f nohup.out |
Watch for startup errors.
The J2EE Policy Agent is not yet ready to begin working. In the following procedures, you deploy the policy agent application , setup up an authentication provider, and modify the Bypass Principal List. All of these tasks must be completed before the agent can do its job.
Use the following as your checklist for completing the J2EE Policy Agent 1 installation:
Go to the following Protected Resource 1 directory.
The J2EE Policy Agent installer creates a new file in the Application Server bin directory:
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin
Make a backup of the file setDomainEnv.sh.
In the setDomainEnv.sh file, at the end of the file append the following:
echo "Setting Policy Agent Env..." . /usr/local/bea/user_projects/domains/ProtectedResource-1/bin/ setAgentEnv_ApplicationServer-1.sh |
This command references the file the installer created in the Application Server bin directory.
Save the setDomainEnv.sh file.
Change permissions for the setAgentEnv_ApplicationServer-1.sh file:
# cdmod 755 setAgentEnv_ApplicationServer-1.sh |
Stop Application Server 1.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # ./stopManagedWebLogic.sh ApplicationServer-1 t3://localhost:7001
Stop the administration server.
#cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Watch for startup errors.
Start Application Server 1.
# nohup ./startManageWebLogic sh ApplicatoinServer-1 http://ProtectedResource-1.example.com:7001 & tail -f nohup.out
Run the netstat command to verify that Application Server 1 is up and listening.
# netstat -an | grep 1081 xxx.xx.72.151.1081 *.* 0 0 49152 0 LISTEN 127.0.0.01.1081 *.* 0 0 49152 0 LISTEN
Go to the following Application Server URL:
http://ProtectedResource-1.example.com:7001/console
Log in to the Application Server console using the following information:
weblogic
w3bl0g1c
In the Application Server console, under Domain Structure, click Deployments.
On the Summary of Deployments page, in the Change Center, click “Lock & Edit.”
Under Deployments, click Install.
On the Install Application Assistant page, click the protectedresource-1.example.com link.
In the field named Location: protectedresource-1.example.com, click the root directory.
Navigate to the application directory: /opt/j2ee_agents/am_wl9_agent/etc/
Select agentapp.war, and then click Next.
In the Install Application Assistant page, choose “Install this deployment as an application,” and then click Next.
In the list of Servers, mark the checkbox for ApplicationServer-1, and then click Next.
In the Optional Settings page, click Next.
Click Finish.
On the “Settings for agentapp” page, click Save.
In the Change Center, click Activate Changes.
On the “Settings for agentapp” page, click Deployments.
On the Summary of Deployments page, mark the agentapp checkbox, and then click Start > “Servicing all requests.”
On the Start Deployments page, click Start.
You may encounter a Javascript error. The agent application will not start until you start the Application Server.
In the console, on the Summary of Deployments page, under Domain Structure, click Security Realms.
On the Summary of Security Realms page, click “Lock & Edit.”
Click the Realm name myrealm link.
On the “Settings for myrealm” page, click the Providers tab.
On the Providers tab, under Authentication Providers, click New.
On the Create a New Authentication Provider page, provide the following information:
Agent-1
AgentAuthenticator
Click OK.
Agent-1 is now included in the list of Authentication Providers.
In the list of Authentication Providers, click Agent-1.
In the Settings for Authentication Providers page, verify that the Control Flag is set for OPTIONAL.
On the Settings for Agent-1 page, in the list of Authentication Providers, click DefaultAuthenticator.
On the Settings for DefaultAuthenticator page, set the Control Flag to OPTIONAL, and then click Save.
Return to the Providers page.
In the navigation tree near the top of the page, click Providers.
In the Change Center, click Activate Changes.
Make a backup of the following file:
/opt/j2ee_agents/am_wl9_agent/agent_001/config/AMAgent.properties
In the AMAgent.properties file, set the following property:
com.sun.identity.agents.config.bypass.principal[0] = weblogic
At end of the file, insert a new property.
com.sun.identity.session.resetLBCookie='true'
The default value for this property is false. You must add this property only if session failover has been configured for Access Manager. If session failover is not configured for Access Manager, and this property is added, it could impact performance negatively. If session failover is enabled for Access Manager, and this property is not added, then Access Manager sessions will still fail over, and the session failover functionality will work properly. However, the stickiness to the Access Manager server will not be maintained after failover occurs. Session stickiness to the Access Manager server helps performance. This property must be added to the AMConfig.properties file on the Access Manager servers, as well as to the AMAgent.properties for the J2EE Policy Agent servers. This property is not required for the Web Policy Agent servers. The Access Manager 7 2005Q4 Patch 3 in Sun Java System Access Manager 7 2005Q4 Release Notes Release Notes also references this property. See the sectionCR# 6440651: Cookie replay requires com.sun.identity.session.resetLBCookie property in Sun Java System Access Manager 7 2005Q4 Release Notes.
Save the file.
Use the following as your checklist for setting up a test for the J2EE Policy Agent 1:
The BEA Policy Agent comes with a sample application specifically created to help you test your access policies. Locate the sample application file here: opt/j2ee_agents/am_wl9_agent/sampleapp. For more information, see the file /opt/j2ee_agents/am_wl9_agent/sampleapp/readme.txt.
Go to the Application Server 1 URL:
http://ProtectedResource-1.example.com:7001/console
Log in to the Application Server using the following information:
weblogic
w3bl0g1c
In the Application Server console, on the Summary of Deployments page, click “Lock & Edit.”
Under Domain Structure, click Deployments.
Under Deployments, click Install.
On the Install Application Assistant page, click the protectedresource-1.example.com link.
In the list for Location: protectedresource-1.example.com, click the root directory.
Navigate to the application directory: /opt/j2ee_agents/am_wl9_agent/sampleapp/dist
Select agentsample, and then click Next.
In the Install Application Assistant page, choose “Install this deployment as an application,” and then click Next.
In the list of Servers, mark the checkbox for ApplicationServer-1, and then click Next.
On the “Optional Settings” page, click Next to accept the default settings.
On the Review Your Choices” page, click Finish.
The Target Summary section indicates that the module agentsample will be installed on the target ApplicationServer-1.
In the “Settings for agentsample” page, click Activate Changes.
Under Domain Structure, click Deployments.
In the Deployments list, mark the checkbox for agentsample, and then click Start > Servicing All Requests.
On the Start Deployments page, click Yes.
The state of the deployment changes from Prepared to Active.
Log out of the Application Server 1 console.
You will use these roles to verify that the sample application has been successfully installed and configured.
Start the Directory Server 1 console, and log in:
cn=Directory Manager
d1rm4n4ger
http://DirectoryServer-1.example.com:1391
In the Directory Server console, expand the example.com suffix.
Click Server Group > am-users, and then click Open.
Click the Directory tab.
Right-click dc=company, dc=com, and then click New > Role.
In the Create New Role page, in the Role Name field, enter manager, and then click OK.
Right-click dc=company, dc=com, and then click New > Role.
In the Create New Role page, in the Role Name field, enter employee, and then click OK.
On the Directory Tab, for the suffix dc=company, dc=com, you should see the two users you just added: manager and employee.
Double-click the manager role.
In the Edit Role page, click Members and then click Add.
In the Search Users and Groups dialog, click Search.
In the list of results, select Test User 1 and then click OK.
In the Edit Role page, click OK.
Double-click the employee role.
In the Edit Role page, click Members and then click Add.
In the Search Users and Groups dialog, click Search.
In the list of results, select Test User 2 and then click OK.
In the Edit Role page, click OK.
Log out of the Directory Server console.
In the Access Manager 1 console, on the Access Control tab, click the example.com link.
Click the Policies tab.
Under Policies, click the “Referral URL Policy for users realm” link.
This is the policy that was created when setting up the Web Policy Agent.
On the Edit Policy page, under Rules, click New.
On the page “Step 1 of 2: Select Service Type for the Rule,” select “URL Policy Agent (with resource name),” and then click Next.
On the page “Step 2 of 2: New Rule,” provide the following information, and then click Next:
URL Policy for ApplicationServer-1
http://ProtectedResource-1.example.com:1081/agentsample/*
Click Finish.
In the Access Manager 1 console, on the Access Control tab, click the users link.
Click the Policies tab.
Under Policies, click New Policy.
In the Name field, enter URL Policy for ApplicationServer-1.
Under Rules, click New.
On the page “Step 1 of 2: Select Service Type for the Rule,” click Next.
The default “URL Policy Agent (with resource name)” should be selected.
On the page “Step 2 of 2: New Rule,” provide the following information:
agentsample
In the list, select http://ProtectedResource-1.example.com:1081/agentsample/*
The following is automatically entered when you select the Parent Resource Name above:
http://ProtectedResource-1.example.com:1081/agentsample/*
Mark this check box, and verify that the Allow value is selected.
Mark this check box, and verify that the Allow value is selected.
Click Finish.
The rule agentsample is now added to the list of Rules.
Under Subjects, click New.
On the page “Step 1 of 2: Select Subject Type,” select Access Manager Identity Subject, then click Next.
On the page “ Step 2 of 2: New Subject — Access Manager Identity Subject,” provide the following information:
agentsampleRoles
Select role.
Click Search.
In the Available list, the select manager and employee roles, and then click Add.
The roles are now displayed in the Selected list.
Click Finish.
Click Create.
The new policy is included in the list of Policies.
Log in as a root user to Protected Resource 2.
# cd /opt/j2ee_agents/am_wl9_agent/agent_001/config |
Make a back up the AMAgent.propertiesfile.
In the AMAgent.properties file, set the following properties:
com.sun.identity.agents.config.notenforced.uri[0] = /agentsample/public/* com.sun.identity.agents.config.notenforced.uri[1] = /agentsample/images/* com.sun.identity.agents.config.notenforced.uri[2] = /agentsample/styles/* com.sun.identity.agents.config.notenforced.uri[3] = /agentsample/index.html com.sun.identity.agents.config.notenforced.uri[4] = /agentsample com.sun.identity.agents.config.access.denied.uri = /agentsample/authentication/accessdenied.html com.sun.identity.agents.config.login.form[0] = /agentsample/authentication/login.html com.sun.identity.agents.config.login.url[0] = http://LoadBalancer-3.example.com:7070/amserver/UI/Login?realm=users |
Save the file.
Restart the Application Server 2.
Stop Application Server 2 .
# cd /usr/local/bea/user_projects/domains/ ProtectedResource-2/bin # ./stopManagedWebLogic.sh ApplicationsServer-2 t3://localhost:7001
Stop the administration server.
# ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Start Application Server 2.
# nohup ./startManagedWebLogic.sh ApplicationServer-1 http://ProtectedResource-1.example.com:7001 &
Use these steps to access the agent sample application, and then test policies against that sample application.
Go to the Sample Application URL:
http://protectedresource-1.example.com:1081/agentsample/index.html
The Sample Application welcome page is displayed.
Click J2EE Declarative Security > “Invoke the Protected Servlet”
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser1
password
If you can successfully log in as testuser1, and the J2EE Policy Agent Sample Application page is displayed, then this part of the test succeeded and authentication is working as expected.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected Servlet link”.
If the Success Invocation message is displayed, then this part of the test succeeded , and the sample policy for the manager role has been enforced as expected.
Click the “J2EE Declarative Security” link to go back.
Click the “Invoke the Protected EJB via an Unprotected Servlet” link.
If the Failed Invocation message is displayed, then this part of the test succeeded, and the sample policy for the employee role has been enforced as expected.
Close the browser.
In a new browser session, go to the Sample Application URL:
http://protectedresource-1.example.com:1081/agentsample/index.html
The Sample Application welcome page is displayed.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected EJB via an Unprotected Servlet” link.
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser1
password
If you can successfully log in as testuser1, and the J2EE Policy Agent Sample Application page is displayed, then this part of the test succeeded and authentication is working as expected.
Click the “J2EE Declarative Security” link to go back.
On the J2EE Declarative Security page, click the “Invoke the Protected EJB via an Uprotected Servlet” link.
The Successful Invocation message is displayed. The sample policy for the employee role has been enforced as expected.
In this section, you configure the policy agent to point to the SSL port for the Access Manager load balancer.
Use the following as your checklist for configuring Access Manager to communicate over SSL:
Import the root CA certificate into the Application Server keystore.
Configure the Policy Agents to access the Distributed Authentication UI server.
In this procedure, you import a Certificate Authority (CA) certificate. The certificate enables the Authentication UI server to trust the certificate from the Access Manager load balancer (Load Balancer 3), and to establish trust with the certificate chain that is formed from the CA to the certificate.
Go to the directory where the keystore ( the cacerts file) is located:
#cd /usr/local/bea/jdk150_04/jre/lib/security/ |
Make a backup of the cacerts file.
Copy the CA certificate that you obtained from your Certificate Authority into a temporary directory. Example:
/export/software/ca.cer |
Import the certificate:
# /usr/local/bea/jdk150_04/bin/keytool -import -trustcacerts -alias OpenSSLTestCA -file /export/software/ca.cer -keystore /usr/local/bea/jdk150_04/jre/lib/security/cacerts -storepass changeit Owner: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=Sun, O=Sun, L=Santa Clara, ST=California, C=US Issuer: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=Sun, O=Sun, L=Santa Clara, ST=California, C=US Serial number: 97dba0aa26db6386 Valid from: Tue Apr 18 07:55:19 PDT 2006 until: Tue Jan 13 06:55:19 PST 2009 Certificate fingerprints: MD5: 9F:57:ED:B2:F2:88:B6:E8:0F:1E:08:72:CF:70:32:06 SHA1: 31:26:46:15:C5:12:5D:29:46:2A:60:A1:E5:9E:28:64:36: 80:E4:70 Trust this certificate? [no]: yes Certificate was added to keystore |
Verify that the certificate was imported successfully:
# /usr/local/bea/jdk150_04/bin/keytool -list -keystore /usr/local/bea/jdk150_04/jre/lib/security/cacerts -storepass changeit | grep openssl openssltestca, Oct 2, 2006, trustedCertEntry, |
As a root user, log into host ProtectedResource–1.
# cd /opt/j2ee_agents/am_wl9_agent/agent_001/config
Make a backup of the AMAgent.properties file.
In the AMAgent.properties, set the following properties:
com.sun.identity.agents.config.login.url[0] = https://LoadBalancer-3.example.com:9443/amserver/UI/Login?realm=users com.sun.identity.agents.config.cdsso.cdcservlet.url[0] = https://LoadBalancer-3.example.com:9443/amserver/cdcservlet com.sun.identity.agents.config.cdsso.trusted.id.provider[0] = https://LoadBalancer-3.example.com:9443/amserver/cdcservlet com.iplanet.am.naming.url= https://LoadBalancer-3.example.com:9443/amserver/namingservice com.iplanet.am.server.protocol=https com.iplanet.am.server.port=9443
Save the file.
Stop Application Server 1 .
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # ./stopManagedWebLogic.sh ApplicationsServer-1 t3://localhost:7001
Stop the administration server.
# ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Start Application Server 1.
# nohup ./startManagedWebLogic.sh ApplicationServer-1 http://ProtectedResource-1.example.com:7001 &
Use these steps to access the agent sample application, and then test policies against that sample application.
Go to the Sample Application URL:
http://protectedresource-1.example.com:1081/agentsample/index.html
The Sample Application welcome page is displayed.
Click J2EE Declarative Security > “Invoke the Protected Servlet”
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser1
password
If you can successfully log in as testuser1, and the J2EE Policy Agent Sample Application page is displayed, then this part of the test succeeded and authentication is working as expected.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected Servlet link”.
If the Success Invocation message is displayed, then this part of the test succeeded , and the sample policy for the manager role has been enforced as expected.
Click the “J2EE Declarative Security” link to go back.
Click the “Invoke the Protected EJB via an Unprotected Servlet” link.
If the Failed Invocation message is displayed, then this part of the test succeeded, and the sample policy for the employee role has been enforced as expected.
Close the browser.
In a new browser session, go to the Sample Application URL:
http://protectedresource-1.example.com:1081/agentsample/index.html
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser2
password
The Failed Invocation message is displayed.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected EJB via an Unprotected Servlet” link.
The Successful Invocation message is displayed. The sample policy for the employee role has been enforced as expected.
Click the “J2EE Declarative Security” link to go back.
Click the “Invoke the Protected Servlet” link.
If the Access to Requested Resource Denied message is displayed, then this part of the test is successful. The sample policy for the manager role has been enforced as expected.
Log in as a root user to Protected Resource 1.
# cd /opt/j2ee_agents/am_wl9_agent/agent_001/config
Make a backup of the file AMAgent.properties.
In the AMAgent.properties file, set the following properties:
com.sun.identity.agents.config.login.url[0] = https://LoadBalancer-4.example.com:9443/distAuth/UI/Login?realm=users
Save the file.
Restart the Application Server.
Stop Application Server 1.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # ./stopManagedWebLogic.sh ApplicationServer-1 t3://localhost:7001
Stop the administration server.
#cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Watch for startup errors.
Start Application Server 1.
# nohup ./startManageWebLogic.sh ApplicatoinServer-1 http://ProtectedResource-1.example.com:7001 & tail -f nohup.out
Verify that the agents are configured properly.
Go to the sample application URL:
http://ProtectedResource-1.example.com:1081/agentsample/index.html
In the left navigation bar, click “Invoke the Protected Servlet.”
You are redirected to the Distributed Authentication UI server URL https://loadbalancer-4.example.com:9443/distAuth/UI/login. The Access Manager login page is displayed.
Double-click the gold lock in the lower left corner of the browser.
In the Properties page, you see certificate for LoadBalancer–4.example.com.
Log in to the Access Manager console using the following information:
testuser1
password
You are redirected to the protected servlet of the Sample Application, and a success message is displayed. This indicates that authentication through the Distributed Authentication UI server was successful.
Use the following as your checklist for installing Web Server 2 and Web Policy Agent 2:
Import the root CA certificate into the Web Server 2 key store.
Configure the Web Policy Agent to use the new agent profile.
As root, log in to host ProtectedResource-2.
Start the Java Enterprise System installer with the -nodisplay option.
# cd /mnt/Solaris_sparc # ./installer -nodisplay |
When prompted, provide the following information:
|
Press Enter. |
|
|
Press Enter. |
|
|
Enter y. |
|
|
Enter 8 for “English only.” |
|
|
Enter 3 to select Web Server. |
|
|
Press Enter. |
|
Enter 1 to upgrade these shared components and 2 to cancel [1] |
You are prompted to upgrade shared components only if the installer detects that an upgrade is required. Enter 1 to upgrade shared components. |
|
|
Accept the default value. |
|
|
Enter 1. |
|
|
Enter 1. |
|
|
Accept the default value. |
|
|
Accept the default value. |
|
|
Accept the default value. |
|
|
Enter admin. |
|
|
For this example, enter web4dmin. |
|
|
Enter the same password to confirm it. |
|
|
Accept the default value. |
|
|
Accept the default value. |
|
|
Accept the default value. |
|
|
For this example, enter web4dmin. |
|
|
Accept the default value. |
|
|
Accept the default value. |
|
|
Accept the default value. |
|
|
Enter root. |
|
|
Enter root. |
|
|
Enter 1080. |
|
|
Accept the default value. |
|
|
Accept the default value. |
|
|
First, see the next numbered (Optional) step. When ready to install, enter 1. |
(Optional) During installation, you can monitor the log to watch for installation errors. Example:
# cd /var/sadm/install/logs # tail —f Java_Enterprise_System_install.B xxxxxx |
Upon successful installation, enter ! to exit.
Verify that the Web Server is installed properly.
Start the Web Server administration server to verify it starts with no errors.
# cd /opt/SUNWwbsvr/https-admserv
# ./stop; ./start
Run the netstat command to verify that the Web Server ports are open and listening.
# netstat -an | grep 8888 *.8888 *.* 0 0 49152 0 LISTEN |
Go to the Web Server URL.
http://ProtectedResource-2.example.com:8888
Log in to the Web Server using the following information:
admin
web4dmin
You should be able to see the Web Server console. You can log out of the console now.
Start the Protected Resource 2 instance.
#cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com # ./stop; ./start |
Run the netstat command to verify that the Web Server ports are open and listening.
# netstat -an | grep 1080 *.1080 *.* 0 0 49152 0 LISTEN |
Go to the instance URL.
http://ProtectedResource-2.example.com:1080
You should see the default Web Server index page.
The Java System Web Policy Agents 2.2 package must be downloaded to each Protected Resource that will host a Web Policy Agent. You can download the package from the following website: http://www.sun.com/download
Due to a known problem with this version of the Web Policy Agent, you must start an X-display session on the server host using a program such as Reflections X or VNC, even though you use the command-line installer. For more information about this known problem, see http://docs.sun.com/app/docs/doc/819-2796/6n52flfoq?a=view#adtcd.
Log in as a root user to host ProtectedResource-2.
Download the Java System Web Policy Agents 2.2 package from the following website:
Unpack the downloaded package.
In this example, the package was downloaded into the directory /temp.
# cd /temp
# gunzip sun-one-policy-agent-2.2-es6-solaris_sparc.tar.gz
# tar —xvof sun-one-policy-agent-2.2-es6-solaris_sparc.tar
Start the Web Policy Agents installer.
# ./setup -nodisplay
When prompted, provide the following information:
|
Press Enter. |
||
|
Press Enter. |
||
|
Enter y. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Enter .
|
||
|
Enter 1080. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
For this example, enter the external-facing load balancer host name. Example: LoadBalancer-3.example.com |
||
|
Enter the load balancer HTTP port number. For this example, enter 90. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Enter the amldapuser password that was entered when Access Manager was installed. For this example, enter 4mld4puser . |
||
|
Enter the 4mld4puser password again to confirm it. |
||
|
Accept the default value. |
||
|
First, see the next (Optional) numbered step. When you are ready to start installation, press Enter. |
(Optional) During installation, you can monitor the log to watch for installation errors. Example:
# cd /var/sadm/install/logs # tail —f /var/sadm/install/logs/ Sun_Java_tm__System_Access_Manager_Policy_Agent_install.Bxxxxxx |
Modify the AMAgent.properties file.
# cd /etc/opt/SUNWam/agents/es6/ config/_opt_SUNWwbsvr_https-ProtectedResource-2.example.com |
Make a backup of AMAgent.properties before setting the following property:
com.sun.am.policy.am.login.url = https://LoadBalancer-4.example.com:9443/distAuth/UI/Login?realm=users
Restart the Web Server.
Watch for errors as the server starts up.
# cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com
# ./stop; ./start
Start a new browser and go to the Access Manager URL.
Example: https://loadbalancer-3.example.com:9443/amserver/console
Log in to Access Manager using the following information:
amadmin
4m4dmin1
Create a referral policy in the top-level realm.
On the Access Control tab, under Realms, click example.com.
Click the Policies tab.
On the Policies tab for example.com-Policies, click the “Referral URL Policy for users realm” link.
In the Edit Policy page, under Rules, click New.
In the Edit Rule page, provide the following information.
On the same page, in the Rules section, click New.
Select a Service Type.
On the page “Step 1 of 2: Select Service Type for the Rule,” select URL Policy Agent (with resource name)
Click Next.
On the page “Step 2 of 2: New Rule,” provide the following information:
URL Rule for ProtectedResource-2
http://ProtectedResource-2.example.com:1080/*
Click Finish.
On the Edit Policy page, click Save.
In the Policies tab for example.com — Policies, you should see the policy named Referral URL Policy for users realm.
Create a policy in the users realm.
Click Realms.
On the Access Control tab, under Realms, click the Realm Name users.
Click the Policies tab.
On the Policies tab for users-Policies, click New Policy.
In the New Policy page, provide the following information:
URL Policy for ProtectedResource-2
Verify that the checkbox is marked.
On the same page, in the Rules section, click New.
On the page “Step 1 of 2: Select Service Type for the Rule,” click Next.
The Service Type “URL Policy Agent (with resource name) is the only choice.
On the page “Step 2 of 2: New Rule,” provide the following information:
URL Rule for ProtectedResource-2
Click the URL listed in the Parent Resource Name list: http://ProtectedResource-2.example.com:1080/*
The URL is automatically added to the Resource Name field.
Mark this checkbox, and select the Allow value.
Mark this checkbox, and select the Allow value.
Click Finish.
On the Policy page, in the Subjects section, click New.
Select the subject type.
On the page “Step 1 of 2: Select Subject Type,” select the Access Manager Identity Subject type.
On the page “Step 2 of 2: New Subject — Access Manager Identity Subject,” provide the following information:
Test Subject
Choose User, and then click Search. Four users are added to the Available list.
In the list, select testuser1, and then click Add.
The user testuser1 is added to the Selected list.
Click Finish.
In the New Policy page, click Create.
On the Policies tab for users-Policies, the new policy “URL Policy for ProtectedResource-2” is now in the Policies list.
Verify that the new policy works with Web Policy Agent 2.
The Web Policy Agent on Protected Resource 1 connects to Access Manager servers through Load Balancer 3. The load balancer is SSL-enabled, so the agent must be able to trust the load balancer SSL certificate in order to establish the SSL connection. To do this, import the root CA certificate that issued the Load Balancer 3 SSL server certificate into the Web Policy Agent certificate store.
Obtain the root CA certificate, and copy it to ProtectedResource-2.
Copy the root CA certificate to Protected Resource 2.
Open a browser, and go to the Web Server 2 administration console.
http://ProtectedResource-2.example.com:8888
Log in to the Web Server 2 console using the following information:
admin
web4dmin
In the Select a Server field, select ProtectedResource-2.example.com, and then click Manage.
If a “Configuration files have not been loaded” message is displayed, it may be that the administration server has never been accessed, and so the configuration files have never been loaded. First click Apply, and then click Apply Changes. The configuration files are read, and the server is stopped and restarted.
Click the Security tab.
On the Initialize Trust Database page, enter a Database Password.
Enter the password again to confirm it, and then click OK.
In the left frame, click Install Certificate and provide the following information, and then click OK:
Choose Trusted Certificate Authority (CA)
password
OpenSSL_CA_Cert
/export/software/ca.cert
Click Add Server Certificate.
Click Manage Certificates.
The root CA Certificate name OpenSSL_CA_Cert is included in the list of certificates.
Click the Preferences tab.
Restart Web Server 2.
On the Server On/Off page, click Server Off. When the server indicates that the administration server is off, click Server On.
Configure the Web Policy Agent 2 to point to the Access Manager SSL port.
Edit the AMAgent.properties file.
# cd /opt/SUNWam/agents/es5/config/ _optSUNWwbsvr_https=ProtectedResource-2.example.com
Make a backup of the AMAgent.properties file before setting the following property:
# com.sun.am.naming.url = https://LoadBalancer-3.example.com:9443/amserver/namingservice
Save the file.
Restart Web Server 2.
# cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com # ./stop; ./start
This new account will be used by J2EE Policy Agent 2 to access the Access Manager server.
Create an agent profile on Access Manager.
Go to Access Manage load balancer URL:
https://LoadBalancer-3.example.com:9443/amserver/UI/Login
Log in to the Access Manager console using the following information:
amadmin
4m4dmin1
On the Access Control tab, under Realms, click the realm name example.com.
Click the Subjects tab.
Click the Agents tab.
On the Agent page, click New.
On the New Agent page, provide the following information:
webagent-2
web4gent2
web4gent2
Choose Active.
Click Create.
The new agent webagent–2 is now display in the list of Agent Users.
Log in to as a root user to Protected Resource 2.
Run the cypt_util utility.
The utility encrypts the password.
# cd /opt/SUNWam/agents/bin # ./crypt_util web4gent2 BXxzBswD+PZdMRDRMXQQA==
Copy the encrypted password, and save it in a text file.
Edit the AMAgent.properties file.
# cd /etc/opt/SUNWam/agents/es6/ config/_opt_SUNWwbsvr_https-ProtectedResource-2.example.com |
Make a backup of AMAgent.properties you make the following change in the file:
com.sun.am.policy.am.password = webagent-2 com.sun.am.policy.am.password = BXxzBswD+PZdMRDRMXQQA==
Use the encrypted password obtained in the previous step.
Save the file.
Restart Web Server 2.
# cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com # ./stop; ./start
Use the following as your checklist for installing Application Server 2 and the J2EE Policy Agent 2:
Download the BEA WebLogic Server installer onto Protected Resource 2.
Follow the instructions provided by BEA for obtaining and using the software.
Extract the installer files:
# /download_directory/export/weblogic/server910_solaris32.bin |
|
Enter Next. |
|
|
Enter 1. |
|
|
Press Enter to accept the default value and continue. |
|
|
Enter 2 to choose custom install. |
|
|
Enter Next. |
|
|
Press Enter to accept the default value and continue. |
|
|
Press Enter to confirm the default value and continue. |
|
|
Press Enter. |
Create a new domain.
Start the BEA WebLogic Configuration Wizard.
# cd /usr/local/bea/weblogic91/common/bin # ./config.sh |
Provide the following information:
|
Press Enter to accept the default value 1. |
|
|
Press Enter to accept the default value 1. |
|
|
Press Enter to accept the default value and continue. |
|
|
Enter 2 to modify the user password. |
|
|
Enter w3bl0g1c. |
|
|
Enter 3 to confirm user password. |
|
|
Enter w3bl0g1c. |
|
|
Press Enter to accept the values and continue. |
|
|
Enter 2 to select Production Mode. |
|
|
Press Enter to accept the default value and continue. |
|
|
Enter 1 . |
|
|
Press Enter to Continue. |
|
|
Enter ApplicationServer-2. |
|
|
Enter 3 to modify the Listen port. |
|
|
Enter 1081. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Enter ProtectedResource-2. |
|
|
Press Enter to accept these values. |
|
|
Enter ProtectedResource-2. |
|
|
Press Enter to accept these values. |
|
|
Enter 1 to add a Unix machine. |
|
|
Press Enter to continue. |
|
|
Press Enter to continue. |
|
|
Enter ProtectedResource-2. |
|
|
Press Enter to continue. |
|
|
Press Enter. |
Create two files necessary to automate Application Server 2 startup.
Create one file in the directory for the Application Server 2 administration server, and create one file in the Application Server 2 instance directory. The administrative user and password are stored in each file. Application Server 2 uses this information during server start-up. Without these files, Application Server 2 will fail to start. Application Server 2 encrypts the file, so there is no security risk even though you enter the user name and password in clear text.
# cd /usr/local/bea/user_projects/domains/ ProtectedResource-2/servers/AdminServer # cat > boot.properties username=weblogic password=w3bl0g1c ^D # cd /usr/local/bea/user_projects/domains/ ProtectedResource-2/servers/ApplicationServer-2/ # mkdir security # cd security/ # cat > boot.properties username=weblogic password=w3bl0g1c ^D |
Start the servers.
# cd /usr/local/bea/user_projects/ domains/ProtectedResource-2/bin/ # ./startWebLogic.sh & # # netstat -an | grep 7001 xxx.xx.72.151.7001 *.* 0 0 49152 0 LISTEN 127.0.0.1.7001 *.* 0 0 49152 0 LISTEN # # cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin/ # ./startManagedWebLogic.sh ApplicationServer-2 http://ProtectedResource-2.example.com:7001 & # # ./startManagedWebLogic.sh ApplicationServer-2 http://ProtectedResource-2.example.com:7001 # cd /usr/local/bea/user_projects/domains/ ProtectedResource-1/bin/ # netstat -an | grep 7001 xxx.xx.72.151.1081 *.* 0 0 49152 0 LISTEN 127.0.0.1.1081 *.* 0 0 49152 0 LISTEN xxx.xx.72.151.33425 xxx.xx.72.151.1081 49152 0 49152 0 ESTABLISHED xxx.xx.72.151.1081 xxx.xx.72.151.33425 49152 0 49152 0 ESTABLISHED |
Verify that Application Server 2 is up and running.
Go to the following URL:
http://ProtectedResource-2.example.com:7001/console
Log in to Application Server 2 using the following information:
weblogic
w3bl0g1c
Verify that you can successfully log into the console.
Under Domain Structure > ProtectedResource-2, expand the Environment object.
Click Servers.
On the Summary of Servers page, verify that both AdminServer(admin) and ApplicationServer-2 are running and OK.
This new account will be used by J2EE Policy Agent 2 to authenticate to the Access Manager server.
Go to Access Manage load balancer URL:
https://LoadBalancer-3.example.com:9443/amserver/UI/Login
Log in to the Access Manager console using the following information:
amadmin
4m4dmin1
On the Access Control tab, under Realms, click the realm name example.com.
Click the Subjects tab.
Click the Agents tab.
On the Agent page, click New.
On the New Agent page, provide the following information:
j2eeagent-2
j2ee4gent2
j2ee4gent2
Choose Active.
Click Create.
The new agent j2eeagent–2 is now display in the list of Agent Users.
Log out of the Access Manager console.
Create a text file, and add the Agent Profile password to the file.
The J2EE Policy Agent installer requires this file for installation.
# cd /opt/j2ee_agents/amwl9_agent # cat > agent_pwd j2ee4gent2 ^D
Application Server 2 must not be running when you install J2EE Policy Agent 2.
You must stop both the Application Server 2 instance and the administration server before installing J2EE Policy Agent 2.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin/ # ./stopManagedWebLogic.sh ApplicationServer-2 t3://localhost:7001 # cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin # ./stopWebLogic.sh |
Unpack the J2EE Policy Agent bits.
cd /opt # /usr/sfw/bin/gtar -xvf /export/software/SJS_Weblogic_9_agent_2.2.tar # gunzip ../SJS_Weblogic_9_agent_2.2.tar.gz # /usr/sfw/bin/gtar -xvf ../SJS_Weblogic_9_agent_2.2.tar |
Start the J2EE Policy Agent installer.
# cd /opt/j2ee_agents/am_wl9_agent/bin # ./agentadmin --install
When prompted, provide the following information:
|
Press Enter to continue. Continue to press Enter until you reach the end of the License Agreement. |
||
|
Enter
. |
||
|
Enter ApplicationServer-2. |
||
|
Enter LoadBalancer-3.example.com. |
||
|
Enter 90. |
||
|
Enter http. |
||
|
Accept the default value. |
||
|
ProtectedResource-2.example.com |
||
|
Enter /usr/loca/bea/weblogic91. |
||
|
Enter 1081. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Accept the default value. |
||
|
Enter j2eeagent-1. |
||
|
Enter
. |
||
|
Accept the default value. |
||
|
Accept the default value. |
Check the installation log to make sure there are no problems reported.
Use the following as your checklist for completing the J2EE Policy Agent 2 installation:
The J2EE Policy Agent installer creates a new file in the Application Server bin directory:
/usr/local/bea/user_projects/domains/ProtectedResource-2/ bin/setAgentEnv_ApplicationServer-2.sh |
Make a backup of setDomainEnv.sh.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin/
In setDomainEnv.sh, insert the following at the end of the file:
. /usr/local/bea/user_projects/domains/ProtectedResource-2/ bin/setAgentEnv_ApplicationServer-2.sh |
This command references the file the installer created in the Application Server bin directory.
Save the file.
Change permissions for the setAgentEnv_ApplicationServer-2.sh file:
# chmod 755 setAgentEnv_ApplicationServer-2.sh
Start the Application Server administration server.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin # nohup ./startWebLogic.sh & # tail -f nohup.out |
Watch for startup errors.
Go to the following Application Server URL:
http://ProtectedResource-2.example.com:7001/console
Log in to the Application Server console using the following information:
weblogic
w3bl0g1c
In the Application Server console, under Domain Structure, click Deployments.
On the Summary of Deployments page, click “Lock & Edit.”
Under Deployments, click Install.
On the Install Application Assistant page, click the protectedresource-2.example.com link.
In the list for Location: protectedresource-2.example.com, click the root directory.
Navigate to the application directory: /opt/j2ee_agents/am_wl9_agent/etc/
Select agentapp.war, and then click Next.
In the Install Application Assistant page, choose “Install this deployment as an application,” and then click Next.
In the list of Servers, mark the checkbox for ApplicationServer-2, and then click Next.
In the Optional Settings page, click Next.
On the Summary of Deployments page, click Finish.
In the Change Center, click Activate Changes.
On the “Settings for agentapp” page, under Domain Structure, click Deployments.
On the Summary of Deployments page, mark the agentapp checkbox, and then click Start > Servicing All Requests.
On the Start Deployments page, clickYes.
You may encounter a Javascript error. The agent application will not start until you start the Application Server.
In the console, on the Summary of Deployments page, under Domain Structure, click Security Realms.
On the Summary of Security Realms page, in the Change Center click “Lock & Edit.”
Click the Realm name myrealm link.
On the “Settings for myrealm” page, click the Providers tab.
On the Providers tab, under Authentication Providers, click New.
On the Create a New Authentication Provider page, provide the following information:
Agent-1
AgentAuthenticator
Click OK.
Agent-1 is now included in the list of Authentication Providers.
In the list of Authentication Providers, click Agent-1.
In the Settings for Authentication Providers page, verify that the Control Flag is set for OPTIONAL.
On the Settings for Agent-1 page, in the list of Authentication Providers, click DefaultAuthenticator.
On the Settings for DefaultAuthenticator page, set the Control Flag to OPTIONAL, and then click Save.
Return to the Providers page.
In the navigation tree near the top of the page, click Providers.
Click Activate Changes.
Make a backup of the following file:
/opt/j2ee_agents/am_wl9_agent/agent_001/config/AMAgent.properties
In the AMAgent.properties file, set the following property:
com.sun.identity.agents.config.bypass.principal[0] = weblogic
At end of the file, insert a new property.
com.sun.identity.session.resetLBCookie='true'
The default value for this property is false. You must add this property only if session failover has been configured for Access Manager. If session failover is not configured for Access Manager, and this property is added, it could impact performance negatively. If session failover is enabled for Access Manager, and this property is not added, then Access Manager sessions will still fail over, and the session failover functionality will work properly. However, the stickiness to the Access Manager server will not be maintained after failover occurs. Session stickiness to the Access Manager server helps performance. This property must be added to the AMConfig.properties file on the Access Manager servers, as well as to the AMAgent.properties for the J2EE Policy Agent servers. This property is not required for the Web Policy Agent servers. The Access Manager 7 2005Q4 Patch 3 in Sun Java System Access Manager 7 2005Q4 Release Notes Release Notes also references this property. See the sectionCR# 6440651: Cookie replay requires com.sun.identity.session.resetLBCookie property in Sun Java System Access Manager 7 2005Q4 Release Notes.
Save the file.
Use the following as your checklist for setting up a test for the J2EE Policy Agent 2:
Deploy the sample application on Application Server 1.
Go to the Application Server 1 URL:
http://ProtectedResource-1.example.com:7001/console
Log in to the Application Server using the following information:
weblogic
w3bl0g1c
In the Application Server console, on the Summary of Deployments page, click “Lock & Edit.”
Under Domain Structure, click Deployments.
Under Deployments, click Install.
On the Install Application Assistant page, click the protectedresource-1.example.com link.
In the list for Location: protectedresource-2.example.com, click the root directory.
Navigate to the application directory: /opt/j2ee_agents/am_wl9_agent/sampleapp/dist
Select agentsample.ear, and then click Next.
In the Install Application Assistant page, choose “Install this deployment as an application,” and then click Next.
In the list of Servers, mark the checkbox for ApplicationServer-1, and then click Next.
On the “Optional Settings” page, click Next to accept the default settings.
On the Review Your Choices” page, click Finish.
The Target Summary section indicates that the module agentsample will be installed on the target ApplicationServer-1.
In the “Settings for agentsample” page, click Activate Changes.
Under Domain Structure, click Deployments.
In the Deployments list, mark the checkbox for agentsample, and then click Start > Servicing All Requests.
On the Start Deployments page, click Yes.
The state of the deployment changes from Prepared to Active.
Log out of the Application Server 1 console.
Go to the following Protected Resource 1 directory:
/usr/local/bea/user_projects/domains/ProtectedResource-1/bin
Stop Application Server 1.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin # ./stopManagedWebLogic.sh ApplicationServer-1 t3://localhost:7001
Stop the administration server.
#cd /usr/local/bea/user_projects/domains/ProtectedResource-1/bin ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Watch for startup errors.
Start Application Server 1.
# nohup ./startManageWebLogic.sh ApplicatoinServer-2 http://ProtectedResource-1.example.com:7001 & tail -f nohup.out
Run the netstat command to verify that Application Server 1 is up and listening.
# netstat -an | grep 1081 xxx.xx.72.151.1081 *.* 0 0 49152 0 LISTEN 127.0.0.01.1081 *.* 0 0 49152 0 LISTEN
In the Access Manager 1 console, on the Access Control tab, click the example.com link.
Click the Policies tab.
Under Policies, click the “Referral URL Policy for users realm” link.
This is the policy that was created when setting up the Web Policy Agent.
On the Edit Policy page, under Rules, click New.
On the page “Step 1 of 2: Select Service Type for the Rule,” select “URL Policy Agent (with resource name),” and then click Next.
On the page “Step 2 of 2: New Rule,” provide the following information, and then click Next:
URL Policy for ApplicationServer-2
http://ProtectedResource-2.example.com:1081/agentsample/*
Click Finish.
In the Access Manager 1 console, on the Access Control tab, click the users link.
Click the Policies tab.
Under Policies, click New Policy.
In the Name field, enter URL Policy for ApplicationServer-2.
Under Rules, click New.
On the page “Step 1 of 2: Select Service Type for the Rule,” click Next.
The default “URL Policy Agent (with resource name)” should be selected.
On the page “Step 2 of 2: New Rule,” provide the following information:
agentsample
Choose http://ProtectedResource-2.example.com:1081/agentsample/*
The following is automatically entered when you select the Parent Resource Name above:
http://ProtectedResource-2.example.com:1081/agentsample/*
Mark this check box, and verify that the Allow value is selected.
Mark this check box, and verify that the Allow value is selected.
Click Finish.
The rule agentsample is now added to the list of Rules.
Under Subjects, click New.
On the page “Step 1 of 2: Select Subject Type,” select Access Manager Identity Subject, then click Next.
On the page “ Step 2 of 2: New Subject — Access Manager Identity Subject,” provide the following information:
agentsampleRoles
Select role.
Click Search.
In the Available list, the select manager and employee roles, and then click Add.
The roles are now displayed in the Selected list.
Click Finish.
Click Create.
The new policy is included in the list of Policies.
Log in as a root user to Protected Resource 2.
# cd /opt/j2ee_agents/am_wl9_agent/agent_001/config |
Make a back up the AMAgent.properties file.
Set the following properties:
com.sun.identity.agents.config.notenforced.uri[0] = /agentsample/public/* com.sun.identity.agents.config.notenforced.uri[1] = /agentsample/images/* com.sun.identity.agents.config.notenforced.uri[2] = /agentsample/styles/* com.sun.identity.agents.config.notenforced.uri[3] = /agentsample/index.html com.sun.identity.agents.config.notenforced.uri[4] = /agentsample com.sun.identity.agents.config.access.denied.uri = /agentsample/authentication/accessdenied.html com.sun.identity.agents.config.login.form[0] = /agentsample/authentication/login.html com.sun.identity.agents.config.login.url[0] = http://LoadBalancer-3.example.com:7070/amserver/UI/Login?realm=users |
Save the file.
Restart the Application Server 2.
Stop Application Server 2 .
# cd /usr/local/bea/user_projects/domains/ ProtectedResource-2/bin # ./stopManagedWebLogic.sh ApplicationsServer-2 t3://localhost:7001
Stop the administration server.
# ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Start Application Server 2.
# nohup ./startManagedWebLogic.sh ApplicationServer-2 http://ProtectedResource-2.example.com:7001 &
Go to the Sample Application URL:
http://protectedresource-2.example.com:1081/agentsample/index.html
The Sample Application welcome page is displayed.
Click J2EE Declarative Security > “Invoke the Protected Servlet”
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser1
password
If you can successfully log in as testuser1, and the J2EE Policy Agent Sample Application page is displayed, then this part of the test succeeded and authentication is working as expected.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected Servlet link”.
If the Success Invocation message is displayed, then this part of the test succeeded , and the sample policy for the manager role has been enforced as expected.
Click the “J2EE Declarative Security” link to go back.
Click the “Invoke the Protected EJB via an Unprotected Servlet” link.
If the Failed Invocation message is displayed, then this part of the test succeeded, and the sample policy for the employee role has been enforced as expected.
Close the browser.
In a new browser session, go to the Sample Application URL:
http://protectedresource-2.example.com:1081/agentsample/index.html
The Sample Application welcome page is displayed.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected EJB via an Unprotected Servlet” link.
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser2
password
If you can successfully log in as testuser2, and the J2EE Policy Agent Sample Application page is displayed, then this part of the test succeeded and authentication is working as expected.
Click the “J2EE Declarative Security” link to go back.
On the J2EE Declarative Security page, click the “Invoke the Protected EJB via an Uprotected Servlet” link.
The Successful Invocation message is displayed. The sample policy for the employee role has been enforced as expected.
Use the following as your checklist for configuring Access Manager to communicate over SSL:
Import a root CA certificate into the Application Server 2 key store.
Configure the J2EE Policy Agents to access the Distributed Authentication UI server.
Log in as a root user to Protected Resource 2.
# cd /opt/j2ee_agents/am_wl9_agent/agent_001/config
Make a backup of the AMAgent.properties file.
In the AMAgent.properties, set the following properties:
com.sun.identity.agents.config.login.url[0] = https://LoadBalancer-3.example.com:9443/amserver/UI/Login?realm=users com.sun.identity.agents.config.cdsso.cdcservlet.url[0] = https://LoadBalancer-3.example.com:9443/amserver/cdcservlet com.sun.identity.agents.config.cdsso.trusted.id.provider[0] = https://LoadBalancer-3.example.com:9443/amserver/cdcservlet com.iplanet.am.naming.url= https://LoadBalancer-3.example.com:9443/amserver/namingservice com.iplanet.am.server.protocol=https com.iplanet.am.server.port=9443
Save the AMAgent.properties file.
Log in as a root user to Protected Resource 2 and go to the following directory:
/usr/local/bea/jdk150_04/jre/lib/security/
Make a backup of cacerts.
Import the certificate.
# /usr/local/bea/jdk150_04/bin/keytool -import -trustcacerts -alias OpenSSLTestCA -file /export/software/ca.cer -keystore / usr/local/bea/jdk150_04/jre/lib/security/cacerts -storepass changeit Owner: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=Sun, O=Sun, L=Santa Clara, ST=California, C=US Issuer: EMAILADDRESS=nobody@nowhere.com, CN=OpenSSLTestCA, OU=Sun, O=Sun, L=Santa Clara, ST=California, C=US Serial number: 97dba0aa26db6386 Valid from: Tue Apr 18 07:55:19 PDT 2006 until: Tue Jan 13 06:55:19 PST 2009 Certificate fingerprints: MD5: 9F:57:ED:B2:F2:88:B6:E8:0F:1E:08:72:CF:70:32:06 SHA1: 31:26:46:15:C5:12:5D:29:46:2A:60:A1:E5:9E:28:64:36:80:E4:70 Trust this certificate? [no]: yes Certificate was added to keystore
Verify the certificate was added to the key store.
# /usr/local/bea/jdk150_04/bin/keytool -list -keystore /usr/local/bea/jdk150_04/jre/lib/security/cacerts -storepass changeit | grep i openssl openssltestca, Oct 2, 2006, trustedCertEntry,
Stop Application Server 2 .
# cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin # ./stopManagedWebLogic.sh ApplicationServer-2 t3://localhost:7001
Stop the administration server.
# ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Start Application Server 2.
# nohup ./startManagedWebLogic.sh ApplicationServer-2 http://ProtectedResource-2.example.com:7001 &
Go to the Sample Application URL:
http://protectedresource-2.example.com:1081/agentsample/index.html
The Sample Application welcome page is displayed.
Click J2EE Declarative Security > “Invoke the Protected Servlet”
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser1
password
If you can successfully log in as testuser1, and the J2EE Policy Agent Sample Application page is displayed, then this part of the test succeeded and authentication is working as expected.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected Servlet link”.
If the Success Invocation message is displayed, then this part of the test succeeded , and the sample policy for the manager role has been enforced as expected.
Click the “J2EE Declarative Security” link to go back.
Click the “Invoke the Protected EJB via an Unprotected Servlet” link.
If the Failed Invocation message is displayed, then this part of the test succeeded, and the sample policy for the employee role has been enforced as expected.
Close the browser.
In a new browser session, go to the Sample Application URL:
http://protectedresource-2.example.com:1081/agentsample/index.html
The Policy Agent redirects to the Access Manager login page.
Log in to the Access Manager console using the following information:
testuser2
password
The Failed Invocation message is displayed.
Click the “J2EE Declarative Security” link.
On the J2EE Declarative Security page, click the “Invoke the Protected EJB via an Unprotected Servlet” link.
The Successful Invocation message is displayed. The sample policy for the employee role has been enforced as expected.
Click the “J2EE Declarative Security” link to go back.
Click the “Invoke the Protected Servlet” link.
If the Access to Requested Resource Denied message is displayed, then this part of the test is successful. The sample policy for the manager role has been enforced as expected.
Log in as a root user to Protected Resource 2.
# cd /opt/j2ee_agents/am_wl9_agent/agent_001/config
Make a backup of the file AMAgent.properties.
In the AMAgent.properties file, set the following properties:
com.sun.identity.agents.config.login.url[0] = https://LoadBalancer-4.example.com:9443/distAuth/UI/Login?realm=users |
Save the file.
Restart the Application Server.
Stop Application Server 2.
# cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin # ./stopManagedWebLogic.sh ApplicationServer-2 t3://localhost:7001
Stop the administration server.
#cd /usr/local/bea/user_projects/domains/ProtectedResource-2/bin ./stopWebLogic.sh
Start the administration server.
# nohup ./startWebLogic.sh & # tail -f nohup.out
Watch for startup errors.
Start Application Server 2.
# nohup ./startManageWebLogic.sh ApplicatoinServer-2 http://ProtectedResource-2.example.com:7001 & tail -f nohup.out
Verify that the agents are configured properly.
Go to the sample application URL:
http://ProtectedResource-2.example.com:1081/agentsample/index.html
In the left navigation bar, click “Invoke the Protected Servlet.”
You are redirected to the Distributed Authentication UI server URL https://loadbalancer-4.example.com:9443/distAuth/UI/login. The Access Manager login page is displayed.
Double-click the gold lock in the lower left corner of the browser.
In the Properties page, you see certificate for LoadBalancer–4.example.com.
Log in to the Access Manager console using the following information:
testuser1
password
You are redirected to the protected servlet of the Sample Application, and a success message is displayed. This indicates that authentication through the Distributed Authentication UI server was successful.