[SR-Users] authentication is not working

Iñaki Baz Castillo ibc at aliax.net
Sun Feb 6 10:52:49 CET 2011


2011/2/3 Danny Dias <ing.diasdanny at gmail.com>:
>         if (is_method("REGISTER"))
>         {
>                 # authenticate the REGISTER requests (uncomment to enable
> auth)
>                 if (!www_authorize("", "subscriber"))
>                 {
>                         www_challenge("", "0");
>                         exit;
>                 }
>                 ##
>                 if (!db_check_to())
>                 {
>                         sl_send_reply("403","Forbidden auth ID");
>                         exit;
>                 }
>                 if (!save("location"))
>                         sl_reply_error();
>                 exit;
>         }

Ensure that this block is being executed in your test. For that, add
some xlog here and there. Most probably there is some part of your
script that makes the above work not to be executed for your request.

-- 
Iñaki Baz Castillo
<ibc at aliax.net>


More information about the sr-users mailing list