#399 LDAP_RESULT attribute filter mismatch

1.6.x
closed-fixed
modules (454)
5
2011-07-25
2011-07-15
Anonymous
No

Hi all,

At least on opensips-1.6.4-2-tls, I found a bug on ldap_result function. In this function, has a incomplete filter match on ldap attribute variable.

On this code...

if (ldap_search("ldap://ldap/ou=sip,dc=acad,dc=voip,dc=XXXXXXXX?permission,creditos,creditosAtivo?one?(&(cn=$fU))")) {
......

ldap_result("creditos/$avp(s:creditos)");
ldap_result("creditosAtivo/$avp(s:creditosAtivo)");
ldap_result("cre/$avp(s:teste)");
ldap_result("c/$avp(s:teste2)");

xlog("Variavel ---------- $avp(s:permission) - $avp(s:creditos) - $avp(s:creditosAtivo) - $avp(s:teste) - $avp(s:teste2) \n");

.....

This XLOG will return:
--> Jul 15 09:40:54 VoIP-ACAD-M1 opensips[29593]: Variavel ---------- 16415 - CA - CA - CA - CA

On LDAP directory the values are on this sample:
* creditos --> CRED
* creditosAtivos -> CA
* permission -> 16415

Thanks,
Guilherme Rhoden

Discussion

  • Razvan Crainea

    Razvan Crainea - 2011-07-15

    Hi Guilherme,

    There was a bug while processing the ldap response. It should be fixed with the latest svn commit (#8188) on OpenSIPS 1.6 and trunk. Please try again and let me know if you have any problems.

    Thanks and regards,
    Razvan Crainea

     
  • Bogdan-Andrei Iancu

    • assigned_to: nobody --> razvancrainea
    • status: open --> open-fixed
     
  • Razvan Crainea

    Razvan Crainea - 2011-07-21

    Hi Guilherme,

    Any feedback of the last changes? Please let me know so I can port the fixes in the new OpenSIPS 1.7 and close this thread.

    Regards,
    Răzvan

     
  • Razvan Crainea

    Razvan Crainea - 2011-07-25
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks