[sr-dev] Bug in www_authorize/challenge functions

Andrei Pelinescu-Onciul andrei at iptel.org
Thu Oct 7 10:28:02 CEST 2010


On Oct 07, 2010 at 04:04, Alex Balashov <abalashov at evaristesys.com> wrote:
> On 10/07/2010 04:01 AM, Alex Balashov wrote:
> 
[...]
> 
> However, www_authorize() still returns -1 (invalid user).  The
> problem is not entirely solved.  :/


That's a documentation problem. The return codes have changes
(auth_db returns directly the error code of auth).

-1 = authentication error (could be bad credentials, internal error
     , credentials not found for the givel realm a.s.o)
-2 = password
-3 = user unknown

It could also be fixed by adding return code translation to the expected
values for k, to modules_k/auth_*

Andrei



More information about the sr-dev mailing list