How to get REMOTE_USER in Apache (OHS)
Marek H.May 22 2009 — edited May 22 2009Hi,
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.