Robert Barkalow wrote:
Has anyone developed a technique for “bypassing” the user login for WebI? The 2.0 Admin Guide briefly mentions that a cookie is passed to the session manager component which determines if a WebI session already exists. Could this cookie be constructed programatically? Our intranet has a single
point
of entry that includes a user sign-on process, and this user ID could be synchronized with those in the repository security domain.
You can achieve this but some minor customization is required to the WebIntelligence files.
Solution
To setup a pass-through authentication method is fairly simple. Basically after you retrieve the password for a user from your script (whether it be a javascript or cgi script), you need to POST those parameters via the CGI login method supported for WebI2.
In more practical terms, when you login through the Homepage.html login page, you are calling a Pass.htm page that executes a CGI login script. The Pass.htm page consists of a JavaScript login box that normally prompts the user to enter his/her logon credentials. This is where the customization would come in.
The important part pertains to the name/pass parameters:
As you can see the parameters are supplied to the login script via POST method.
So instead of submitting those logon credentials you can pass them automatically like w/ this example of HTML syntax:
URL=http://your_server_name/wi/bin/nph-password.exe?name=your_username&pass= your_password">
Of course from then on, you can choose your submitting method.
Another thing to do is to modify your Logon.wis so that way you revert back to an ISAPI or NSAPI interface. It makes for much better performance. You’ll need to change just a small part of the Logon.wis. This is what it looks like:
CONTENT="0;URL=%SCRIPT_NAME%/WIGenerator/wigenerator/generator/ExecuteWIS?sW IS=" >
Just modify the %SCRIPT_NAME% variable to http://your_server_name/wi/bin/iswi.dll for ISAPI or http://your_server_name/wi/bin/iswi.dl! for NSAPI. [Note the exclamation point at the end for NSAPI]
Kumar Kannankutty
Sales Consultant
Business Objects Americas - Midwest Region Office: 612-391-7834
Fax: 612-391-7839
kkannankutty@businessobjects.com
http://www.businessobjects.com http://www.businessobjects.com
Listserv Archives (BOB member since 2002-06-25)