Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 1173 invoked from network); 15 Aug 2006 15:48:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Aug 2006 15:48:02 -0000 Received: (qmail 10542 invoked by uid 500); 15 Aug 2006 15:47:54 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 10468 invoked by uid 500); 15 Aug 2006 15:47:54 -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 10457 invoked by uid 99); 15 Aug 2006 15:47:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 08:47:54 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 64.233.182.187 as permitted sender) Received: from [64.233.182.187] (HELO nf-out-0910.google.com) (64.233.182.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2006 08:47:51 -0700 Received: by nf-out-0910.google.com with SMTP id x37so340312nfc for ; Tue, 15 Aug 2006 08:47:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=a2yCrXfgVs/vM1CmPrqvPSQLBoAvCrRRocK1kMH7kcxfWQuJWWtnowo8laRKyBbEKFSnqHUmos/dc1vOAFRTBImiuTsC2gxqU1KZD2D0OO5NkLtyNyTaUUkILwrEcxFACjcDG+RvK/nhtGKVINHUsdRo/9w1qUUGd0HlXSVs9rw= Received: by 10.49.8.10 with SMTP id l10mr1517058nfi; Tue, 15 Aug 2006 08:47:30 -0700 (PDT) Received: by 10.78.142.9 with HTTP; Tue, 15 Aug 2006 08:47:30 -0700 (PDT) Message-ID: Date: Tue, 15 Aug 2006 11:47:30 -0400 From: "Joshua Slive" Sender: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <000601c6c07b$6c7b05f0$0400000a@smallbusiness.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000601c6c07b$6c7b05f0$0400000a@smallbusiness.local> X-Google-Sender-Auth: 7ed22beba8988b77 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] How to detect failed authentification ? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 8/15/06, Marc MENDEZ wrote: > thanks for your answer, that's what I thought. > > But, is there a solution to get a mail *only* when the login failed ? If you are using php as a module, you could probably check $_SERVER['PHP_AUTH_USER'] as described here: http://ca3.php.net/features.http-auth If it is empty or unset, it is likely an initial login attempt. If there is something in it but you still wound up at your 401 page, then it is probably a bad password. I've never tried it, but it should work. 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