You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Sergij Borodych <bo...@univ.kiev.ua> on 2007/05/21 14:38:15 UTC
Detect auth errors: user not found or password mismatch ?
Hi ALL,
I try detect auth errors with use basic auth
I have 2 error type in httpd log
[error] [client 192.168.0.2] user test1: authentication failure for "/":
Password Mismatch
[error] [client 192.168.0.2] user test2 not found: /
How I can determine it under both mod_perl (1&2) ?
I use $r->status to detect 401 status
$r->user() return always test1 and test2
$r->get_basic_auth_pw() return always OK and sent passwords
--
Sergij Borodych
http://bor.org.ua