To use LTPA, open the install_location/configuration/bi-services/bi-service.xml file, and change the special subject type from EVERYONE to ALL_AUTHENTICATED_USERS in the following way:
<special-subject type="ALL_AUTHENTICATED_USERS"/>. Make this change on all computers where Cognos Analytics servers are installed.
10. Copy the LTPA keys from Websphere into Cognos Analytics
To complete the setup, copy the LTPA keys generated on the WebSphere Application Server to the Cognos Analytics WebSphere Liberty location:
D.Note:The following section and recommendation apply only to Cognos Analytics versions 12.1.0 and 12.1.1. If you are running a version earlier than 12.1.x, please skip the steps below and start the Cognos Services.
- Locate the file bootstrap_wlp_xxx.xml.
- Create a backup of this file.
- Add the following parameters to it under " <param>jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED</param>"
<param>--add-exports</param>
<param>java.naming/com.sun.jndi.ldap=com.ibm.ws.jndi</param>
<param>--add-exports</param>
<param>java.naming/com.sun.jndi.ldap=ALL-UNNAMED</param>
<param>--add-opens</param>
<param>java.naming/com.sun.jndi.ldap=ALL-UNNAMED</param>
<param>--add-opens</param>
<param>java.naming/com.sun.jndi.ldap=com.ibm.ws.jndi</param>
- Save the file and start the Cognos services.
Conclusion
Start the Cognos services with LTPA authentication enabled. During access, the authentication flow is redirected to WebSphere, where LTPA-based authentication is performed. Upon successful validation of the LTPA token, Cognos Analytics establishes the user session and maps the external identity to the configured LDAP namespace, resulting in seamless single sign-on (SSO) without any additional credential prompts.