|
From: <mi...@st...> - 2003-09-29 20:17:19
|
Michael Str=F6der wrote:
>=20
> 2. Use ldap.filter.escape_filter_chars() for escaping the necessary=20
> back-slash and other chars special to filter strings (new in 2.0.0pre12=
).
Or even better use ldap.filter.filter_format().
res =3D conn.search_s(
BASE,
ldap.SCOPE_SUBTREE,
ldap.filter.filter_format(
'(member=3D%s)',(MEMBER,)
)
)
Ciao, Michael.
|