Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 45FB2200BF7 for ; Mon, 9 Jan 2017 18:51:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 44984160B3E; Mon, 9 Jan 2017 17:51:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8B8DB160B2F for ; Mon, 9 Jan 2017 18:51:35 +0100 (CET) Received: (qmail 32867 invoked by uid 500); 9 Jan 2017 17:51:29 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 32858 invoked by uid 99); 9 Jan 2017 17:51:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 17:51:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3D3781A8BC2 for ; Mon, 9 Jan 2017 17:51:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id YKsF4_JGRB4U for ; Mon, 9 Jan 2017 17:51:28 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 5B2C35F486 for ; Mon, 9 Jan 2017 17:51:28 +0000 (UTC) Received: from moin-vm.apache.org (moin-vm.apache.org [163.172.69.106]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A0CC8E049C for ; Mon, 9 Jan 2017 17:51:27 +0000 (UTC) Received: from moin-vm.apache.org (localhost [IPv6:::1]) by moin-vm.apache.org (ASF Mail Server at moin-vm.apache.org) with ESMTP id 4430C800E5 for ; Mon, 9 Jan 2017 18:50:20 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Mon, 09 Jan 2017 17:50:20 -0000 Message-ID: <148398422019.31074.7267667919247888665@moin-vm.apache.org> Subject: =?utf-8?q?=5BHttpd_Wiki=5D_Update_of_=22LogBasicauthenticationusername=22?= =?utf-8?q?_by_thumbs?= Auto-Submitted: auto-generated archived-at: Mon, 09 Jan 2017 17:51:36 -0000 Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for cha= nge notification. The "LogBasicauthenticationusername" page has been changed by thumbs: https://wiki.apache.org/httpd/LogBasicauthenticationusername New page: =3D Log basic authentication username all the time =3D Using Anonymous basic auth with mod_auth_anon requires an Authorization hea= der, else a 401 response will be generated. The solution is to revert to basic HTTP auth, and using that recipe to mani= pulate the authorization header, and ultimately define a new request header= that can be logged. {{{ # Detaint # RequestHeader unset X-User # copy incoming header RequestHeader set X-User "expr=3D%{HTTP:Authorization}" # Grab the base 64 part RequestHeader edit X-User "^Basic (.*)$" $1 # decode it RequestHeader set X-User "expr=3D%{unbase64:%{HTTP:X-User}}" # split on : RequestHeader edit X-User "(.*):.*$" $1 CustomLog logs/test.log "%{X-User}i" }}} --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org For additional commands, e-mail: docs-help@httpd.apache.org