Focal Point
How to get "Domain and Userid" from XP into WFS ????

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2011058331

April 12, 2005, 08:16 PM
<schulzhj>
How to get &quot;Domain and Userid&quot; from XP into WFS ????
Hey Colleagues,
does anyone know, how to get Domain and Userid info from Windows 2000 and XP into WFS ?

We use Oracle Portal 10g Eeker with Single Sign on.
The user log's on to the Portal via "Standard Oracle Portlet" (variables: ooasuser and password, but these variable's cannot be accessed ?!)

My idea is to use a TECH user for WFS and when I'm in WFS, to call SOMETHING Confused Confused ????

To come to the correct signed on user.
I cannot pass IBIC_user and IBIC_pass, also LDAP is not productive yet.

Does anyone has an idea or an Javascript or an User written Subroutine for that ?

Thanks Achim
April 13, 2005, 02:07 PM
Carol Dobson
This may help with part of your queston....
This code should return the User ID;

-SET &USERID = GETUSER(USERID);
-TYPE User ID is: &USERID
April 21, 2005, 05:09 PM
dhagen
Hans,

Typically, SSO type environments pass the now trusted user id via a http header variable. If this is the case, you can issue a call from within the site.wfs to get that header, and then pass it to WebFOCUS as an ampher varialbe. Something like this:

httpheader=auth_header
wfsvar=AUTH_ID
<call> CopyHTTPHeaderToWFVar(httpheader,wfsvar)
<set>AUTH_ID(pass)

In the above, "auth_header" is the http header variable name, and &AUTH_ID would be set to the SSO user for any WF requests.

Check out "WebFOCUS 53 Security and Aministration" document for more info.
January 11, 2008, 03:45 AM
neerajk
Here is the code that I m using in site.wfs but could not work out

_httpheader=userid
_wfsvar=AUTH_ID
CopyHTTPHeaderToWFVar (_httpheader,_wfsvar)
AUTH_ID(pass)

userid is available in HTTP header from Siteminder.
Can you suggest what might be wrong?
Is there any way i can read httpheader in my fex file
January 15, 2008, 10:30 AM
Dslagowitz
Achim,
The WebFOCUS Client can retrieve the HTTP Header variable &REMOTE_USER. In Windown it also creates a &WF_REMOTE_USER variable which contains the domain\userid for the user.
This can be passed to the WFS fairly easily.
First you have to enable your web/app tier to set &REMOTE_USER.
Then you'd need to add the following code to our WFS script files (site.wfs).
domuser=&WF_REMOTE_USER
domuser(pass)

If you search techsupport.ibi.com for &WF_REMOTE_USER you'll find much more on this variable.
Doug


I support multiple Information Builders customers across platforms with very varied configurations.