[OpenSIPS-Devel] [ opensips-Bugs-3367931 ] LDAP_RESULT attribute filter mismatch
SourceForge.net
noreply at sourceforge.net
Fri Jul 15 14:45:34 CEST 2011
Bugs item #3367931, was opened at 2011-07-15 12:45
Message generated for change (Tracker Item Submitted) made by
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: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
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