Deployment Example 1: Access Manager 7.1 Load Balancing, Distributed Authentication UI, and Session Failover

ProcedureTo Point the Web Policy Agents to Load Balancer 5

Modify AMAgent.properties to point Protected Resource 1 and Protected Resource 2 to Load Balancer 5.

  1. As a root user, log in to the ProtectedResource–1 host machine.

  2. Change to the config directory.


    # cd /export/WebPA1/web_agents/sjsws_agent/Agent_001/config
    

    Tip –

    Backup AMAgent.properties before you modify it.


  3. Make the following changes to AMAgent.properties.

    1. Add the following entry:


      com.sun.am.policy.agents.config.fqdn.map =
       valid|LoadBalancer-5.example.com
    2. Append the following to the end of the value string for the com.sun.am.policy.agents.config.notenforced_list property:

      http://ProtectedResource-1.example.com:1080/monitor.html http://LoadBalancer-5.example.com:90/monitor.html

  4. Save the file and close it.

  5. Create a monitor.html file to be used by the load balancer.


    # cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com/docs
    # cat > monitor.html
    <HTML>
    </HTML>
    
    Hit Control D to terminate the command
    
    ^D
    
  6. Restart Web Server 1 on the Protected Resource 1 host machine.


    # cd /opt/SUNWwbsvr/https-ProtectedResource-1.example.com/bin
    # ./stopserv; ./startserv
    
  7. Log out of the ProtectedResource–1 host machine.

  8. As a root user, log in to the ProtectedResource–2 host machine.

  9. Change to the config directory.


    # cd /export/WebPA2/web_agents/sjsws_agent/Agent_001/config
    
  10. Make the following changes to the AMAgent.properties file.


    Tip –

    Backup AMAgent.properties before you modify it.


    1. Add the following entry:


      com.sun.am.policy.agents.config.fqdn.map =
       valid|LoadBalancer-5.example.com
    2. Append the following to the end of the value string for the com.sun.am.policy.agents.config.notenforced_list property:

      http://ProtectedResource-2.example.com:1080/monitor.html http://LoadBalancer-5.example.com:90/monitor.html

  11. Save the file and close it.

  12. Create a monitor.html file to be used by the load balancer.


    # cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com/docs
    # cat > monitor.html
    <HTML>
    </HTML>
    
    Hit Control D to terminate the command
    
    ^D
    
  13. Restart Web Server 2 on the Protected Resource 2 host machine.


    # cd /opt/SUNWwbsvr/https-ProtectedResource-2.example.com/bin
    # ./stopserv; ./startserv
    
  14. Log out of the ProtectedResource–2 host machine.