User Tools

Site Tools


tutorials:auth:auth_db

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
tutorials:auth:auth_db [2014/12/09 22:36]
eschmidbauer created
tutorials:auth:auth_db [2014/12/09 22:48]
eschmidbauer
Line 1: Line 1:
-Howto setup auth_db and usrloc+**Note: This document is work in progress and yet unfinished!** 
 + 
 +This guide is designed to illustrate how to setup auth_db and usrloc to do digest authentication using a database backend. I will be using a postgresql database in this example.  
 + 
 +The following modules are required: usrloc, registrar, auth, auth_db 
 + 
 + 
 +====== General preparations ====== 
 + 
 +You'll probably want to setup your database and add a few users. I will briefly go over how to setup the tables using the schema provided with kamailio. 
 + 
 +====== Modules: auth, auth_db, usrloc, registrar ====== 
 + 
 +<code> 
 +loadmodule "auth.so" 
 +loadmodule "auth_db.so" 
 +loadmodule "usrloc.so" 
 +loadmodule "registrar.so" 
 +</code> 
 + 
 +<code> 
 +modparam("auth_db|usrloc", "db_url", DB_URL) 
 +modparam("auth_db", "use_domain", 1) 
 +modparam("auth_db", "calculate_ha1", 1) 
 +modparam("usrloc", "db_mode", 3 ) 
 +modparam("usrloc", "desc_time_order", 1 ) 
 +modparam("usrloc", "nat_bflag", 1 ) 
 +modparam("usrloc", "timer_interval", 5 ) 
 +modparam("usrloc", "use_domain", 1) 
 +modparam("nathelper|registrar", "received_avp", "$avp(s:rcv)"
 +</code> 
 + 
 + 
tutorials/auth/auth_db.txt · Last modified: 2014/12/09 22:55 by eschmidbauer