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

prb: Wildcards getting quoted with Java/JNDI

My Java/JNDI application, when issuing wildcard queries, appears to be having the wildcard character ("*") quoted by the time it reaches the OpenLDAP server.

For example, if my JNDI application calls:

ctx.search("", "myAttr=jon*doe");

Then the backend processes the query as if it here:

conn=5 op=1 SRCH base="ou=People,dc=netmeme" scope=1 filter="(&(myAttr=jon\2Adoe))"

The asterisk being quoted into "\2A". I can see this by running OpenLDAP from my console with debugging turned on.

If anyone has seen this before and knows how to fix it, I'd appreciate it.

I've also used the "Attributes" style of JNDI's ctx.search(), rather than the straight String approach, hoping that it might handle this better, but it doesn't.

Thank you,