[Date Prev][Date Next] [Chronological] [Thread] [Top]

Bad search filter

Title: Bad search filter

I can search for various entries using JNDI, but not ldapsearch. The ldapsearch tool is giving me the following error:
ldapsearch: ldap_search_ext: Bad search filter (87)

I may or may not have a rough understanding of why this is the case. For example, the error is thrown when the search filter contains characters that have special meanings in the LDAP search operations and in regular expressions


The uid values are valid, so how do I search for them? How can I escape the special characters in ldapsearch, and is there a complete list of characters that I have to escape in a search filter (e.g. I found that the left and right brackets don't work)?