Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 82DC8C816 for ; Tue, 8 May 2012 10:23:40 +0000 (UTC) Received: (qmail 48871 invoked by uid 500); 8 May 2012 10:23:37 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 48530 invoked by uid 500); 8 May 2012 10:23:37 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 48513 invoked by uid 99); 8 May 2012 10:23:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 10:23:36 +0000 X-ASF-Spam-Status: No, hits=-0.3 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,SUBJ_OBFU_PUNCT_FEW,SUBJ_OBFU_PUNCT_MANY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of f.sordillo@cineca.it designates 130.186.81.105 as permitted sender) Received: from [130.186.81.105] (HELO avas-cineca-2.cineca.it) (130.186.81.105) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 10:23:28 +0000 X-IronPort-AV: E=McAfee;i="5400,1158,6704"; a="181672871" Received: from zimbracin04-v352.private.cineca.it (HELO zimbracin04.private.cineca.it) ([10.254.8.87]) by avas-cineca-2.cineca.it with ESMTP; 08 May 2012 12:23:07 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbracin04.private.cineca.it (Postfix) with ESMTP id B3572484B9 for ; Tue, 8 May 2012 12:23:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbracin04.private.cineca.it Received: from zimbracin04.private.cineca.it ([127.0.0.1]) by localhost (zimbracin04.private.cineca.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qFKMRLtD3TDJ for ; Tue, 8 May 2012 12:23:06 +0200 (CEST) Received: from [192.168.64.101] (pdl-19-122.nat.cineca.it [130.186.19.122]) by zimbracin04.private.cineca.it (Postfix) with ESMTPSA id 5CFC648B13 for ; Tue, 8 May 2012 12:14:12 +0200 (CEST) Message-ID: <4FA8F1F3.8010203@cineca.it> Date: Tue, 08 May 2012 12:14:11 +0200 From: Francesco Sordillo User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] REMOTE_USER mod_proxy_ajp JBoss 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. Is there anyone that know how to proxy REMOTE_USER as request attribute with mod_proxy_ajp? Thanks a lot. Francesco. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org