Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 39165 invoked from network); 22 Apr 2005 16:12:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Apr 2005 16:12:48 -0000 Received: (qmail 33581 invoked by uid 500); 22 Apr 2005 16:12:55 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 33552 invoked by uid 500); 22 Apr 2005 16:12:55 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 33538 invoked by uid 99); 22 Apr 2005 16:12:54 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_BY_IP,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jslive@gmail.com designates 64.233.184.201 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.201) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 22 Apr 2005 09:12:54 -0700 Received: by wproxy.gmail.com with SMTP id 67so756333wri for ; Fri, 22 Apr 2005 09:12:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gyiGQgMxhNwudvQzVUBWvLX+Adm4mMF3f6OHdCkYOhqutLrStdF0xwmLTYrI80CfORCjsRrj/o0ZKw4D6N8O2zLMLA0sSq9JXDj3mj/qCzIFe1tiPciEAeJ4F9KAFzcGEPwR/YmWF5WQBXrAsySuYDXwZ6wn83eaor1/1MnBhVI= Received: by 10.54.14.18 with SMTP id 18mr524190wrn; Fri, 22 Apr 2005 09:12:27 -0700 (PDT) Received: by 10.54.62.11 with HTTP; Fri, 22 Apr 2005 09:12:27 -0700 (PDT) Message-ID: Date: Fri, 22 Apr 2005 12:12:27 -0400 From: Joshua Slive Reply-To: Joshua Slive To: users@httpd.apache.org In-Reply-To: <5.2.1.1.0.20050422170509.01dcac40@mail.comune.grosseto.it> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <001601c5474a$34bada60$1379810a@gnb.st.com> <5.2.1.1.0.20050422170509.01dcac40@mail.comune.grosseto.it> X-Virus-Checked: Checked Subject: Re: [users@httpd] MODIFIYING THE REMOTE_USER VARIABLE X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 4/22/05, Bud P. Bruegger wrote: > At 16.47 22/04/2005 +0200, you wrote: > >Hye, > > > >With Apache HTTP Server ver 2.0.40 and LDAP autentication, is it possibl= e > >to OVERWRITE the REMOTE_USER Variable ? With the mod_rewrite module ? > > > >If Yes, What is the syntax according to the RewriteRule Directive , the > >{LA-U:REMOTE_USER} and E=3DVAR:VAL flag ? >=20 > Brian just proposed this: >=20 > RewriteEngine On > RewriteCond %{HTTP:HTTP_SOME_HEADER_FIELD} (.*) > RewriteRule .* - [E=3DREMOTE_USER:%1] >=20 > and it works for me on Apache 1.3. So I assume that also 2.0 will work. As far as I know, this technique cannot be used to override the standard CGI env variables, including REMOTE_USER. In fact, it is not possible at all to override these variables, which is generally a good thing. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org