[SR-Users] Ldap auth
Daniel-Constantin Mierla
miconda at gmail.com
Mon Mar 24 09:47:36 CET 2014
Hello,
remove the double quotes in the IF expressions:
if ("$avp(s:domain)" =~ "$fd") {
Values in between double quotes are strings.
Cheers,
Daniel
On 21/03/14 21:41, Slava Bendersky wrote:
> Hello Everyone,
>
> I am trying compare domain part of uri with ldap query result, getting
> some syntax warning
>
> 1.
> arn_at(): warning in config file /etc/kamailio/kamailio-ldap.cfg,
> line 992, column 17-39: constant value in if(...)
> 2.
> 3.
> 4.
> ldap_result("sipExtension/$avp(extension)");
> 5.
> ldap_result("sipDomain/$avp(domain)");
> 6.
> ldap_result("password/$avp(password)");
> 7.
> 8.
> }
> 9.
>10.
> if ("$avp(s:domain)" =~ "$fd") {
>11.
> xlog("L_INFO", "Not alllowed $fd");
>12.
> sl_send_reply("403","Not allowed $fd");
>13.
> exit;
>14.
> }
>15.
>
> any help thank you
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
http://www.kamailioworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140324/dce24859/attachment-0001.html>
More information about the sr-users
mailing list