How to Change TM1 to use Cognos Security (CAM)

Configuring TM1 to use Cognos security allows you to use your corporate directory server (like Microsoft’s Active Directory) and move the addition of users and placement of users into groups into that company-wide directory server. When TM1 (or Planning Analytics) is first set up or you activate a sample model (like Planning Sample, Proven Techniques, GO New Stores, GO Scorecards, SData or 24Retail), they have standard TM1 security. If you are using TM1 in a corporate environment you will probably want to connect your TM1 models to your company’s Active Directory server. This post walks you through the steps required to convert a TM1 model from using standard TM1 security to using Cognos CAM security, which is connected to the directory server. In technical parlance, to change from Integrated Security Mode 1 to Integrated Security Mode 5.

There are a couple of steps involved in making the change for TM1/Planning Analytics from native security to CAM security. They are:

  1. Modifying the configuration for the specific model
  2. Deploying and modifying BI Interop files

Steps to Change TM1 to use Cognos Security

Model Specific Changes for each TM1 Model

  1. With IntegratedSecurityMode still set to 1, open TM1 Architect with tm1 native security. This forces your user to be added to TM1 security.
  2. Close Architect.
  3. Open TM1s.cfg and modify the setting for:
    1. ClientPingCAMPassport=900
    2. CAMPortalVariableFile=portal\variables_TM1.xml
    3. IntegratedSecurityMode to be 4.
    4. ServerCAMURI=http://cognosgatewayserver.domain.local:9300/p2pd/servlet/dispatch
    5. ClientCAMURI=http://cognosgatewayserver.domain.local/ibmcognos/cgi-bin/cognosisapi.dll
  4. Restart the TM1 service for this model.
  5. Login to Architect now using the AD connection. This will add you to the Security, Clients/Groups in the model with no rights in TM1, but you will be added!
  6. Logout of the model.
  7. Change the security mode in tm1s.cfg back to 1 and restart the service for the model (this is so you can then log in and change your Active Directory ID as an Admin).
  8. Log back in using TM1 native security.
  9. Open Security, Clients/Groups for the model.
  10. Find your Active Directory ID and check the ADMIN box.
  11. Save Data for the model.
  12. Change the security mode in tm1s.cfg to 5 and restart the service for the model.
  13. You can now log in using your AD login and have full control.

Deploy BI Interop Files from the TM1 Server to the BI Server(s)

The last step involves making changes directly on the BI server itself. There are files that need to be copied from the TM1/Planning Analytics server to the BI server and then modified once in place. For Planning Analytics 2.x, all required files can be found at /tm1_64/bi_interop/ and for TM1 10.2.2, they are at tm1_64/webapps/tm1web/bi_files (for TM1Web) and /tm1_64/bi_interop/ (for pmpsvc and pmhub). Alternatively, you can just download them here (the files are identical for both PA 2.0.x and TM1 10.2.2).

  1. Unzip the bi_interop.zip file.
  2. Merge the contents of the templates folder (not the folder itself) with the templates folder on the BI application server.
  3. Restart the BI server.
  4. Merge the contents of the webcontent folder (not the folder itself) with webcontent folder on each BI gateway server. If Cognos 11 is being used, also copy if to the webcontent/bi folder. No restart is required.
  5. Modify the planning.html, pmhub.html, and tm1web.html files to match the TM1 server. Each has a var line that needs to be modified as follows:
    1. tm1web.html – var tm1webServices = [“http://tm1webserver.domain.local:9510”];
    2. planning.html – var planningServices = [“http://tm1webserver.domain.local:9510”];
    3. pmhub.html – var pmhubURLs = [“http://tm1webserver.domain.local:9510”];
  6. If there are multiple TM1 or Planning Analytics servers, or you are using a separate server for TM1Web or Planning Analytics Workspace, enter each one inside the square brackets, separating each entry with a comma. Each entry must be contained in inverted commas (rabbit ears).
  7. Importantly, the var line in the pmhub.html file is a “whitelist” of servers that can access the TM1 server. The entries in it must be identical to what is entered in a browser to access that service. Therefore, for the PAW server (which does not require a port to access it), enter the address as “http://PAWservername.domain.local”.

Your Content

If you like this post, please spread the love…

About John

Managing Director of Infocube. We are a management accounting consultancy that specialises in Business Analytics.
This entry was posted in Cognos BI, Configuration, Installation, Security and tagged bi interop, CAM Security, planning.html, pmhub.html, Security, TM1p.ini, tm1s.cfg, tm1web.html. Bookmark the permalink.