cubewise-code / rushti

Smooth parallelization of TI Processes with TM1py
https://code.cubewise.com/tm1py-help-content/run-processes-in-parallel-using-only-connection
MIT License
9 stars 13 forks source link

How to execute processes with RushTI using CAM authentication? #36

Closed rakhmatullinar closed 3 years ago

rakhmatullinar commented 3 years ago

Hi,

is there any way to execute processes with RushTI using CAM authentication?

MariusWirtz commented 3 years ago

Hi,

you need to adjust the config.ini accordingly. https://code.cubewise.com/tm1py-help-content/how-to-authenticate-to-tm1-with-tm1py

rakhmatullinar commented 3 years ago

I tried to adjust config.ini file, but is doesn't work properly

If config.ini is adjusted like this everything works fine image

When I try to adjust it to use CAM with SSO from the article above I get error "Process '#' not executed on 'tm1srv01'. 'tm1srv01' not accessible" image

MariusWirtz commented 3 years ago

for gateway provide the ClientCAMURI from the tm1s.cfg. The namespace is case sensitive.

That should be it

rakhmatullinar commented 3 years ago

Yep, I provide ClientCAMURI for gateway I thinke case-sensitivity of namespace is not the point, cause it works fine without gateway Have tried different ways of typing gateway (e.g. with quotes or without) but the problem remains

My ClientCAMURI works fine as we use IntegratedSecurityMode 5, also I put this link to browser and Cognos Analytics portal was opened

Some additional info: Execution is made from TI with Executecommand and it works fine when I hardcode user/password ro config.ini

sCommand = 'python ' | sRushTI | ' ' | sTaskFile| ' '|pNbThreads; ExecuteCommand(sCommand,1);