Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get REMOTE_USER in Apache (OHS)

Marek H.May 22 2009 — edited May 22 2009
Hi,

i have an Oracle Portal (10.1.4) in pretty much standard architecture (with Webcache, SSO, etc.). We have a request to apply a certain RewriteRule in Apache as soon as an user is logged in. I first thought about something like this:

RewriteCond %{REMOTE_USER} .+
RewriteRule ^/test/(.*) /success.html [R]

But the problem seems to be, that the REMOTE_USER variable is everytime null whether the user is logged in or not. A quick PHP "print_r($_SERVER);" also shows no REMOTE_USER. The only thing that worked was reading the REMOTE_USER in PL/SQL with: htp.p('Remote user: ' || owa_util.get_cgi_env('REMOTE_USER'));

I have searched the forums and metalink for this issue but was not able to find a solution. Is there a way to get the REMOTE_USER in Apache?

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2009
Added on May 22 2009
1 comment
1,099 views