If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Error :user is already authenticated in the namespace

Started by kalyan_sekhar1, 22 Nov 2005 02:23:16 PM

Previous topic - Next topic

mikegreen

Quote from: kalyan_sekhar1 on 22 Nov 2005 02:23:16 PM
Hi All,

I am ahaving a scenario in which when i clicked on a button opens the report in new window. The Report URL will be something like below:

http://192.148.1.107/crn/cgi-bin/cognos.cgi?b_action=xts.run&CAMUsername=skumar&CAMPassword=sunil234&h_CAM_action=logonAs&CAMNamespace=RAPP&m=portal/report-viewer.xts&method=execute&m_obj=%2fcontent%2fpackage%5b%40name%3d%27BPD%20RAPP%27%5d%2freport%5b%40name%3d%27Metric%20By%20Month%27%5d&outputFormat=HTML&outputLocale=en-us&prompt=true&m_name=Metric%20By%20Month&backURL=%2fcrn%2fcgi-bin%2fcognos.cgi%3fb_action%3dxts.run%26m%3dportal%2fcc.xts%26m_path%3d%252fcontent%252fpackage%255b%2540name%253d%2527BPD%2520RAPP%2527%255d%26m_path2%3d~%252ffolder&runoptions=true

But i am getting error if i click the button again in 1min. The error is as below


The user is already authenticated in the namespace 'RAPP'

Thanks

That is a valid message. CRN thinks you are trying to login again.  You need to either check to see if the user is already authenticated, or pass the URL by the ?crnobject= or similar method that will prompt the user to login.

Regards,

Mike

NeilJThomson

I've never seen such a URL when directly accessing Cognos Connection. However as an extensive user of the Reportnet Web Services SDK, I've noted the following:

The CRNS object is the basic SOAP object used to make all calls to the Reportnet Web Service ââ,¬â€œ itââ,¬â,,¢s used extensively, but creating it is expensive, so Cognos advises to create and re-use the object.

However, I discovered that while clearing and resetting the CAM.passport and the crns.URL is all that should have to be done to reuse the object, in fact there is information in the rest of the BIBusHeader that can cause problems if not cleared prior to re-use.

I had found that having the same user login from two different browser instances on two separate machines was failing on the second login as Reportnet stated that this user was already logged in. This should not have been true as this was through a separate request. However, the second request was re-using the CRNS object from the first request.

What I discovered is that resetting the biBusHeader = new biBusHeader() on each re-use, (and then rebuilding the object path crns.biBusHeader.CAM.CAMPassport with instances) and resetting the URL removes the problems I experienced.

So clearly there is other information in the biBusHeader that identifies the user/account, etc. outside of the passport that has to be cleaned up.

I have code samples for .NET in C# if this of some use..

Neil T. QueryVision

admin1234

kalyan_sekhar1,

You seem to be calling a report via the report URL method.  I bet this works the first time, but not consequent entries right?  Also, if you close your browser session and try again it works - correct?

Now let me tell you your problem:

You can only logon to any single namespace at any one time.  ReportNet's CAM (Cognos Access Manager, a subservice of Content Manager) keeps a log of your logon entries.  Once you logon, ReportNet issues you a CAM Passport which remains as an in-session cookie for a pretermined, prescribed duration or until you specifically log off or close your browser. 

Your problem is that you are passing your authentication details in your URL each time. 

You can resolve this by enabling Single-Signon with ReportNet and removing the logon methods in each of your URL calls.   Alternatively, invoke a logon to the Cognos ReportNet gateway once, and then strip the logon methods in your URL for every entry. 

Cheers,
admin1234