[SR-Users] Ldap auth

Slava Bendersky volga629 at networklab.ca
Fri Mar 21 21:41:08 CET 2014


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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140321/23c7086a/attachment.html>


More information about the sr-users mailing list