Skip to Content
0
Former Member
Oct 04, 2010 at 01:22 PM

Unable to set environment variable REMOTE_USER from JSP and SHTML

42 Views

HI,

Our requirement is as follows

After the user is sucessfully authenticated into enterprise Portal, the custom application running from the Apache server should read the User credentials and set the environment variable(REMOTE_USER) with the logged-in user. After which our native Portal reads the environment variable and logins accordingly.

Our Approach 1

1) After the user is sucessfully authenticated into enterprise Portal, the user clicks upon the URLiview(JSP custom Application running from the Apache server)

2) The JSP file should read the user from the portal and sets the environment variable (using the SSI technology)

Issue: we are stuck to read the logged in user from the enterprise Portal and store it in the JSP file

Our Approach 2

1) After user is sucessfully authenticated into enterprise Portal, the user clicks upon the URLiview(shtml custom Application running from the Apache server)

2) The SSI code of the SHTML file reads the cookie MYSAPSSO2 from the browser and should set the environment.

Issue: we are stuckup to read the the cookie MYSAPSSO2 since the credentials are encrypted.

we are stuck at both the options, please help us to take it forward...

Thanks & Regards,

vijay.