默认配置的Cognos8使用匿名访问,在Cognos Connection中将不需要登录,也看不到log on/log off的连接,自动以anonymous账户登录。
这时如果在Cognos Configuration中直接将Securiy->Authentication->Cognos->allow anonymous access设置为False,则会无法启动服务,主要报错为:
DPR-CMI-4006 Unable to determine the active Content Manager. Will retry periodically.
CM-CFG-5076 A Content Manager configuration error occurred during the initialization of Cognos Access Manager.
CAM-AAA-0145 There is no namespace that is properly configured for authentication.
这是因为,在Authentication只有一个默认的名为cognos(Type为Cognos)的namespace的情况下,必须使用anonymous,否则就需要新建一个namespace,以指定其他认证方式。
在Securiy->Authentication点右键,选New resource->Namespace…,在弹出的对话框中,输入该Namespace的名字,如MyCognos,以及类型,可供选择的有Active Directory,Cognos Series 7,Custom Java Provider,LDAP,Netegrity SiteMinder,NTLM,以及SAP。
例如要使用《如何配置Cognos的Access Manager》里已经配置好的Access Manager认证资源,这里的type就选Cognos Serials 7,然后配置目录服务相应的参数,比如Host and port为localhost:389,Base Distinguished Name为o=cognos,Namespace Name为Default等。要是Directory Server正常,并且设置无误的话,应该可以正常启动Cognos服务了。
更具体的设置过程,请参考Cognos文档《Cognos 8 Installation and Configuration Guide 》。
再打开Cognos Connection,就会出现Log on的界面了: