且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Cognos进行身份验证时出现SystemServerCAMSecurityRequired错误

更新时间:2022-02-07 15:30:36

该错误是因为上面使用的两个已记录的登录功能专门用于

The error is because the two documented login functions used above are specificaly for IntegratedSecurityMode 1, 2 and 3.

您已经表明您正在使用Cognos来处理用户身份验证(模式4或模式5).使用Cognos身份验证登录到服务器有两种或多或少的未记录"功能:

You've indicated that you are using Cognos to handle user authentication, which is either mode 4 or 5. There are two more-or-less "undocumented" functions for logging in to the server using Cognos authentication:

TM1SystemServerConnectWithCAMPassport

这是一个用C ++编写的示例(从此处),您可以使用参考来使用Cognos身份验证进行连接:

Here's a sample, written in C++ (copied from here) which you can use a reference for connecting using Cognos authentication:

TM1V voServerName = TM1ValStringW( hPool, (TM1_UTF16_T *)pszServerName, 0 );

TM1V voPasswd = TM1ValStringEncryptW( hPool, (TM1_UTF16_T*)pszPassword, 0 );

TM1V vArray[3];
vArray[0] = TM1ValStringW( hPool, (TM1_UTF16_T*)szCAMNamespace, 0 );        
vArray[1] = TM1ValStringW( hPool, (TM1_UTF16_T*)admin_login_name, 0 );
vArray[2] = voPasswd;

TM1V vCAMArgArr = TM1ValArray(hPool, vArray, 3);
TM1V vTmpServer =
    TM1SystemServerConnectWithCAMNamespace(hPool, voServerName, vCAMArgArr);