[sr-dev] modules_k/auth removed

Daniel-Constantin Mierla miconda at gmail.com
Sun Jul 25 23:32:39 CEST 2010


Hello,

I removed the modules_k/auth (the one coming from kamailio (openser)) 
and moved modules_s/auth module to directory 'modules'. All the other 
modules depending on previous auth versions were updated to use the one 
from 'modules'.

The RPID-related functions from modules_k/auth were moved to 
modules_k/siputils - they are not really related to authentication and 
pretty independent from the rest of auth.

pv_{www,digest}_authorize() functions were reimplemented in modules/auth 
to use the new auth API - since they perform actually user 
authentication, same functions are available in cfg also as 
pv_{www,digest}_authenticate(). The prototype has been changed so that 
password is given as function parameter instead of module parameter. 
user parameter is not needed. An extra parameter 'flags' allows to 
control the behavior of these functions (see modules/auth/README for more).

Important: the functions from modules_k/auth_db, 
{www,proxy}_authorize(), as well as  pv_{www,digest}_authorize() require 
value for realm. Previously an empty value meant to use To-URI domain 
for REGISTER and From-URI domain for the other requests - now you can 
give $td or $fd as parameter to achieve the same behavior.

Realm prefix parameter is no longer available -- realm being given as 
function parameter with a PV, cfg ops can be used to get the proper value.

Testing and feedback is welcome!

Cheers,
Daniel

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




More information about the sr-dev mailing list