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

ldapsearch with trailing whitespace

Ldapsearch seems to ignore any trailing whitespace in my search query, even if there is an * after the whitespace.

For example for an entry where
cn: Rolando Rodriguez

A search for cn="roland*" returns the entry as expected.

A search for cn="rol *"
also returns the entry.

I would have expected this to only match a cn  like
cn: Rol Rodriguez

Is the behavior expected, or is something wrong with my setup?

I've been told it used to work on our test machine.
But a lot of things changed on the test machine since this worked.

we are running 2.2.23 ( I know it is a bit old)

cn is indexed as

index           givenName,cn,sn,mail                    pres,eq,sub