Re: [SR-Users] Kamailio LDAP integration

2012-05-07 Thread Reda Aouad
You want to get the password (in clear text??) using an external script to check it using pv_www_authenticate? You can use the following function from exec module: http://kamailio.org/docs/modules/stable/modules_k/exec.html#id2552128 The output of your command (shell script, php, ...) can be stor

Re: [SR-Users] Kamailio LDAP integration

2012-05-07 Thread Saul Waizer
Thank you Reda, Is there a way to utilize external scripts for authentication? Like bash, php etc? I cannot change the format of the LDAP but I am thinking about other methods that could possibly work too utilizing the same pv_www_authenticate logic, however these would require some external scrip

Re: [SR-Users] Kamailio LDAP integration

2012-05-04 Thread Reda Aouad
Sorry didn't reply to mailing list before. Emails are below. SHA1 encryption may not encrypt the same way as HA1 (HA1 = MD5 of realm + username + password), so the problem may be here. I suggest you store your passwords as clear text in LDAP for testing first. Reda On Fri, May 4, 2012 at 11:14

Re: [SR-Users] Kamailio LDAP integration

2012-05-04 Thread Reda Aouad
in the line if (!pv_www_authenticate("$td", "$avp(password)", "0")) { write avp(s:password) instead of avp(password) not sure it will solve it though.. if it doesn't, maybe others can help you more on this. Reda On Fri, May 4, 2012 at 5:50 PM, Saul Waizer wrote: > Hello Reda, > > Thank you f

Re: [SR-Users] Kamailio LDAP integration

2012-05-04 Thread Saul Waizer
Hello Reda, Thank you for your feedback, after some further research and testing I got the LDAP search working, I am just having one issue with the password variable: 3(22487) ERROR: *** cfgtrace: c=[/etc/kamailio/kamailio.cfg] l=755 a=28 n=pv_www_authenticate 3(22487) ERROR: [sr_module.c:1613

Re: [SR-Users] Kamailio LDAP integration

2012-05-03 Thread Reda Aouad
Hi Saul, username_avp_spec was previously a AUTH module parameter to specify a variable that was passed to pv_www_authorize implicitly (the function doesn't take arguments). Now you should use the new pv_www_authenticate and pass to it explicitly the credentials as arguments. So forget about user