[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.