Closed user1493 closed 5 years ago
Hi @user1493 ,
your parameters look alright.
Judging from the Error you get, it seems that TM1py did communicate with the CAM gateway, but somehow the cam_passport
was not returned from the gateway.
That sounds very much like the problem @christianthieme was describing in #124 It seems some security is blocking your request to the CAM Server.
I would recommend to follow the idea expressed in #124 or check with your IT department if there are easier ways to get around this issue.
Does the script fail when you run it on the same machine that runs the CAM Server ?
If I provide the user
and password
and leave the gateway
parameter empty, TM1py
is able to communicate and scripts succeeds without error.
But with gateway
it fails even if I provide the user
and password
.
Sorry, but which machine would run the CAM server? Is it the Server in which the TM1 Server
windows services are located?
Also https://github.com/cubewise-code/tm1py/issues/124#issuecomment-491852908 is not feasible if I deliver my scripts to other users as they would lack the web driver software and can't force people to install. Is this the only solution or are you proposing it as a timely workaround?
This is not surprising. If you provide user and password, then TM1py is will use User and Passoword for authentication and not go through CAM SSO.
The machine that you specified in the ClientCAMURI.
If the trick from #124 works, then you know that there is something (most likely security) blocking you from acquiring the cam_passport from the CAM gateway.
If you are not too familiar with the CAM authentication for TM1 perhaps it's easiest to simply stick with user and password.
Okay, I will try out the steps posted in https://github.com/cubewise-code/tm1py/issues/124#issuecomment-491852908 and come back with the results.
Will try to understand the usage of CAM authentication for TM1 as well.
Code:
Error:
Config:
TM1 version: 10.2.2 FP7 Intigrated security mode: 5 with SSO
Should I follow the below idea? Is it secure? https://github.com/cubewise-code/tm1py/issues/124#issuecomment-491852908