Modify AMAgent.properties.
Log in as a root user to the ProtectedResource–2 host machine.
Change to the config directory.
# cd /export/J2EEPA2/j2ee_agents/am_wl92_agent/agent_001/config |
Backup AMAgent.properties before you modify it.
Set the following property.
com.sun.identity.agents.config.login.url[0] = https://LoadBalancer-4.example.com:9443/distAuth/UI/Login?realm=users |
Save AMAgent.properties and close the file.
Restart the Application Server 1 managed server.
Log out of the ProtectedResource–2 host machine.
Verify that the agent is configured properly.
Access http://ProtectedResource-2.example.com:1081/agentsample/index.html, the sample application URL, form a web browser.
The Sample Application Welcome page is displayed.
Click the J2EE Declarative Security link.
On the resulting page, click Invoke the Protected Servlet.
You are redirected to the Distributed Authentication User Interface at https://loadbalancer-4.example.com:9443/distAuth/UI/Login.
(Optional) Double-click the gold lock in the lower left corner of the browser.
In the Properties page, you see the certificate for LoadBalancer–4.example.com.
Log in to the Access Manager console as testuser1.
testuser1
password
If you can successfully log in as testuser1 and the J2EE Policy Agent Sample Application page is displayed, user authentication worked through the Distributed Authentication User Interface.
Log out of the console.