[Twisted-Python] bad behaviour of ldaptor 0.0.39 with twisted 2.2.0: "strange" characters in ldap logs

jmp jean-marc.pouchoulon at ac-montpellier.fr
Wed Apr 12 15:06:45 MDT 2006


I have no answer with a search request,

here is my filter:

In [19]: searchFilter = ldapfilter.parseFilter('(uid=toto)')

The search result in ldap directory server logs shows me  why I have no 
answer:

scope=2 filter="(uid=*\82\09\80\07*toto)" attrs=ALL

With twisted 2.2
python /usr/lib/python2.4/site-packages/ldaptor/ldapfilter.py "(uid=toto)"
LDAPFilter_equalityMatch(attributeDesc=LDAPAttributeDescription(value='uid'), 
assertionValue=LDAPAssertionValue(value=LDAPFilter_substrings_final(value=LDAPFilter_substrings_initial(value='toto'))))

With twisted 1.3 I have not the same result

python /usr/local/lib/python2.4/site-packages/ldaptor/ldapfilter.py 
"(uid=toto)"
LDAPFilter_equalityMatch(attributeDesc=LDAPAttributeDescription(value='uid'), 
assertionValue=LDAPAssertionValue(value='toto'))

The same code works with  twisted 1.3
Any ideas to deal with that ?

thanks
jean-marc







More information about the Twisted-Python mailing list