|
From: <mi...@st...> - 2002-07-22 14:00:49
|
Klaus Boehm wrote:
>
> s = l.search_s("ou=xxxxx, o=xxx", ldap.SCOPE_SUBTREE, gecos,
> attrlist=['uidnumber','gidnumber','uid'], attrsonly=0)
>
> and i want pass the parameter filterstring as a variable(gecos) from
> another programm(Website).
> But i get an error: "ldap.FILTER_ERROR: {'desc': 'Bad search
> filter'}"
>
> What can i do to avoid this error?
Provide a correct search filter (see RFC2254).
Example: '(gecos=*klaus*)'
Ciao, Michael.
|