parameter problem
Michael Ströder
michael at stroeder.com
Mon Jul 22 14:12:28 CEST 2002
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.
More information about the python-ldap
mailing list