[Kamailio-Users] Auth problems with 1.5.1

Daniel-Constantin Mierla miconda at gmail.com
Mon May 25 09:46:51 CEST 2009


Hello,

On 05/25/2009 10:41 AM, Raúl Alexis Betancor Santana wrote:
> Hi all, I'm getting a lot of problems to migrate to 1.5.1, the last one is 
> with auth.
> I'm using postgresql as DB and auth_db with the next params:
>
> [...]
> loadmodule "auth.so"
> modparam("auth", "nonce_expire", 300)
> modparam("auth", "realm_prefix", "sip.")
> modparam("auth", "rpid_suffix", ";party=calling;id-type=subscriber;screen=yes")
> modparam("auth", "rpid_avp", "$avp(s:rpid)")
>
> loadmodule "auth_db.so"
> modparam("auth_db", "db_url", "postgres://openser:XXXX@localhost:5435/voip3")
> modparam("auth_db", "user_column", "username")
> modparam("auth_db", "domain_column", "domain")
> modparam("auth_db", "password_column", "password")
> modparam("auth_db", "password_column_2", "ha1b")
> modparam("auth_db", "calculate_ha1", 0)
> modparam("auth_db", "use_domain", 1)
> modparam("auth_db", "load_credentials", "$avp(s:caller_uuid)=uuid")
> [...]
>
> With openser 1.3.2 and this:
> [...]
> if(!www_authorize("", "subscriber"))
> {
>   xlog("L_INFO", "Register authentication failed BI $T_branch_idx - M=$rm 
> RURI=$ru F=$fu T=$tu IP=$si I D=$ci\n");
>   www_challenge("", "0");
>   exit;
> }
> [...]
>
> All is working ok .. but with kamailio 1.5.1 it doesn't run, It allway return 
> 401 Authentication needed ...
>
> I don't found anything in the docs about any change on auth modules ... what 
> could be happen ?
>
>   
there were no radical changes to auth modules, afaik, do not know about 
postgres. Can you run in debug mode and see why second 401 is sent? Also 
return code $rc will show some hints if you print it with xlog?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com/




More information about the Users mailing list