[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Problem finding telephonenumber in a plain numeric search when number is stored with special characters



Walter Kempel wrote:
Teleponenumber:+41(61)26-71234

Searchfilter "(telephonenumber=+41(61)26-71234)" gave correct result
Searchfilter "(telephonenumber=41612671234)" gave correct result
Searchfilter "(telephonenumber=41(61)26-71234)" gave correct result
Searchfilter "(telephonenumber=+41(61)2671234)" gave correct result

It seems that Notes keeps all non-digit characters out of the telephonenumber index AND the search.

How can I achieve the same under OpenLdap?
Currently you can't. OpenLDAP's telephoneNumber syntax only strips the '-' characters out of the number for indexing. Perhaps you should file an ITS requesting that this be changed; it probably would be more useful to only preserve numeric digits in the index (and the matching).

By the way, technically a number like +41 (61) xxxxx is not well formed; the parentheses are supposed to be omitted for international numbers:

http://groups-beta.google.com/group/comp.std.internat/msg/24fc32228689a620?dmode=source

--
 -- Howard Chu
 Chief Architect, Symas Corp.  http://www.symas.com
 Director, Highland Sun        http://highlandsun.com/hyc
 OpenLDAP Core Team            http://www.openldap.org/project/