Problems with comma inside RDN elements
Jens Vagelpohl
jens at zope.com
Mon Sep 29 23:12:22 CEST 2003
> Or even better use ldap.filter.filter_format().
>
> res = conn.search_s(
> BASE,
> ldap.SCOPE_SUBTREE,
> ldap.filter.filter_format(
> '(member=%s)',(MEMBER,)
> )
> )
This is great and solves the original problem. The only problem I am
finding is that if I happen to have a wildcard filter such as...
(objectClass=*) or (cn=*jens*)
the replacement of '*' with r'\2a' seems problematic. I'm not getting
the expected results, as a maatter of fact I am not getting any results.
jens
More information about the python-ldap
mailing list