Menu

#3 Fljud: bug in search with empty field

open
nobody
None
5
2004-01-20
2004-01-20
No

When searching using Fljud the LDAP server does not
return the correct result when some of the fields are
empty. This seems to happen because of a problem in
line 716 of fljud.pl (v0.3), which says:

$filter .= "($item=*$searchfor{$item}*)";

The problem is that when the fields are empty the part
of the query corresponding to that field ends up as:

(fieldName=**)

OpenLDAP does not handle the double '*' characters
correctly. The correct expression would be:

(fieldName=*)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.