Re: REMOTE_USER mod_proxy_ajp JBoss

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 8, 2012 at 6:14 AM, Francesco Sordillo <f.sordillo@xxxxxxxxx> wrote:
> Hi to all.
>
> I'm running JBoss 5.1.2 with Apache 2.2 with mod_proxy_ajp and mod_shib 2.4
> on RHEL 6.2 environment, so Shibboleth as SSO authentication.
> Proxying Apache request to JBoss we are not able to retreive REMOTE_USER via
> request attribute. An example of application code is:
>
> String username = (String) request.getAttribute("REMOTE_USER");
>
> but, as I said before, REMOTE_USER is not in the attribute header! The
> problem is that using a proxy, requests attribute are lost!


> By Google, some user suggests to configure this rewrite rule on Apache
>
> ###
>    RewriteCond %{LA-U:REMOTE_USER} (.*)
>    RewriteRule .* - [E=MY_REMOTE_USER:%1]
>    RequestHeader add REMOTE_USER %{MY_REMOTE_USER}e
> ###
>
> but in this case "REMOTE_USER" is a Request Header and not a request
> attribute.

Since you say it's lost -- In what environment is this attribute in
JBOSS ever set?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux