Project

General

Profile

Actions

Feature #28

closed

Better "any of" search filter/result

Added by Jörg Ebeling about 4 years ago. Updated over 3 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/19/2020
Due date:
% Done:

0%

Estimated time:
4:00 h

Description

In most phones you configure a name search by an LDAP filter like

(|(cn=%)(sn=%)(givenName=%)(company=%))

which will result in the following LDAP search request if you i.e. search for "gump"

(|(cn=gump%)(sn=gump%)(givenName=gump%)(company=gump%))

Now imagine, you've a less filled cardDAV like;

BEGIN:VCARD
VERSION:3.0
FN:Forrest Gump
TEL;TYPE=WORK,VOICE:(111) 555-1212
END:VCARD

(which is quickly possible with comfortable input methods like i.e. Nextcloud)

Remember: CardDAV "FN" get mapped to LDAP "cn"
But you won't get a hit because CN/FN doesn't start with "gump"!

Either I implement some kind of "anyOfSearch=true" configuration switch, which internally replaces the received

cn=gump%

into

cn=%gump%

or I implement some hack with the help of the LDAP "ApproximateFilter"

cn~=gump
Actions

Also available in: Atom PDF

Go to top