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 #1

Updated by Jörg Ebeling about 4 years ago

  • Target version set to 0.8.1
Actions #2

Updated by Jörg Ebeling about 4 years ago

  • Status changed from New to Rejected

Yealink has a build-in configuration setting for it

ldap.search_type = 1

Yealink description:
0 = Prefix matching, the phone will search the LDAP contact numbers or names start with the entered character(s).
1 = Approximate string matching, the phone will search the LDAP contact numbers or names contain the entered character(s).

Actions #3

Updated by Jörg Ebeling about 4 years ago

  • Status changed from Rejected to New
  • Target version deleted (0.8.1)
Actions #4

Updated by Jörg Ebeling almost 4 years ago

  • Target version set to 0.9.0
Actions #5

Updated by Jörg Ebeling almost 4 years ago

  • Target version deleted (0.9.0)
Actions #6

Updated by Jörg Ebeling over 3 years ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF

Go to top