> -----Original Message-----
> From: Marc MENDEZ [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 15, 2006 6:24 PM
> To: users@httpd.apache.org
> Subject: Re: [EMAIL PROTECTED] How to detect failed authentification ?
> 
> Hum, that's a very good idea ! May be not a perfect, but very 
> interesting !

It's not perfect because the underlying technology doesn't work the way you 
think it does.

I still get the impression that you think that basic authentication involves 
setting up a persistent session and "logging-in". If you read the wikipedia 
link I sent, you will see that this is not the case. The credentials are sent 
with every request and every request is independent. There is no persistent 
session and so you are never really "logged-in" - you either have a valid set 
of credentials that you present every time, or you don't.

That Joshua and Steve have done some lateral thinking and identified a method 
that should work if you have PHP installed is happy chance, but it's not a 
general solution.

BTW, I'm not ranting on about this to be mean - I assume you have some security 
concerns that lead you to employ basic auth. If so, it's important you know how 
it works and what it's limitations are or you could get some nasty surprises 
and that would be bad for you and bad for the reputation of apache.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored.  

> 
> Thanks a lot !
> ----- Original Message ----- 
> From: "Joshua Slive" <[EMAIL PROTECTED]>
> To: <users@httpd.apache.org>
> Sent: Tuesday, August 15, 2006 5:47 PM
> Subject: Re: [EMAIL PROTECTED] How to detect failed authentification ?
> 
> 
> > On 8/15/06, Marc MENDEZ <[EMAIL PROTECTED]> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >   "   from the digest: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
>       
>  p5.vert.ukl.yahoo.com uncompressed Tue Aug 15 15:27:00 GMT 2006 
>       
>               
> ______________________________________________________________
> _____________ 
> Découvrez un nouveau moyen de poser toutes vos questions 
> quelque soit le sujet ! 
> Yahoo! Questions/Réponses pour partager vos connaissances, 
> vos opinions et vos expériences. 
> http://fr.answers.yahoo.com 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>    "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to