[OpenSIPS-Devel] [ opensips-Bugs-3367931 ] LDAP_RESULT attribute filter mismatch
SourceForge.net
noreply at sourceforge.net
Thu Jul 21 09:36:23 CEST 2011
Bugs item #3367931, was opened at 2011-07-15 15:45
Message generated for change (Comment added) made by razvancrainea
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3367931&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.6.x
Status: Open
Resolution: Fixed
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Razvan Crainea (razvancrainea)
Summary: LDAP_RESULT attribute filter mismatch
Initial Comment:
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
----------------------------------------------------------------------
Comment By: Razvan Crainea (razvancrainea)
Date: 2011-07-21 10:36
Message:
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
----------------------------------------------------------------------
Comment By: Razvan Crainea (razvancrainea)
Date: 2011-07-15 18:41
Message:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3367931&group_id=232389
More information about the Devel
mailing list