If you have add two test entries like this (note the empty title value in the second entry): dn: uid=test1,dc=cup,dc=hp,dc=com objectClass: top objectClass: organizationalperson objectClass: inetorgperson objectClass: person uid: test1 sn: test1 cn: test1 title: test1 dn: uid=test2,dc=cup,dc=hp,dc=com objectClass: top objectClass: organizationalperson objectClass: inetorgperson objectClass: person uid: test2 sn: test2 cn: test2 title: Then a search like this will return BOTH of them: ldapsearch -b "dc=cup,dc=hp,dc=com" "title=*est*"
Actually this seems to be fixed in a build from the tip pulled about a week ago. I haven't found the change that fixed it though. Anyone recall fixing it? :)
It works fine for me, too. :) And I don't recall any fixes related to the bug... How old was the server when you observed the bug? Weeks? Months?
I can reproduce the bug with 8.0 builds and it was originally reported in 6.11.
Found it! Nathan fixed it recently. Bug 174394 - Substring regex gets confused by empty values https://bugzilla.redhat.com/show_bug.cgi?id=174394
*** This bug has been marked as a duplicate of bug 174394 ***