I'm using ldapsearch
command to query an OpenLDAP server and, while working fine for most uses, isn't very smart regarding special characters as found in languages like spanish or french.
I mean, if I execute the query:
ldapsearch -h myhost "givenName=Ramón"
It will output people whose name is Ramón
, but it won't ouput those whose name is input as Ramon
(which is pretty frequent in order to avoid problems with special characters). I can be smart and just execute the query as:
ldapsearch -h myhost "givenName=Ram*n"
And it works fine, outputting all possible variations, but I wonder if there's some way to tell ldapsearch to just include accented versions of the characters in the search, so a search for Ramon
includes both Ramon
and Ramón
results. Most search engines already do it nowadays, so perhaps there's a way to do it with LDAP.
Thanks in advance