Hello,

to add more on the topic - kamctl (located in source tree at utils/kamctl/) has the shell script for storing the encrypted/hashed version of the password, known also as HA1 string, which is MD5(username:realm:password).

Cheers,
Daniel

On 04/01/16 11:51, Ben Bliss wrote:
Hi,

The Auth_db module has the ability to read encypted passwords built into it. I'd advise reading the manual for the module, and that should show you how to implement it.
Kind Regards,

---------
Ben Bliss
 
On 04/01/2016 10:13 AM, micho fr wrote:
Hi Guys,

I have a kamailio server 1.3 with clear text Password in Subscriber table.... I wish I can encrypt that password by doing some kind of combinations between username, domain and let kamailio server be reading the encrypted password

Is there a way to do it?

modparam("auth_db", "db_url", DBURL)
modparam("auth_db", "calculate_ha1", 0)
modparam("auth_db", "password_column", "password")
#modparam("auth_db", "password_column", "ha1")
modparam("auth_db", "password_column_2", "ha1b")
modparam("auth_db", "load_credentials", "")
modparam("auth_db", "use_domain", MULTIDOMAIN)



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu