Feature #28
closedBetter "any of" search filter/result
0%
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
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).
Updated by Jörg Ebeling about 4 years ago
- Status changed from Rejected to New
- Target version deleted (
0.8.1)