Accentuated email addresses stored in LDAP
andre at rodier.me
Tue Mar 20 14:12:17 EET 2018
On 20/03/2018 08:00, Steffen Kaiser wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> On Mon, 19 Mar 2018, Andre Rodier wrote:
>> In fact, I am using the otherMailBox attribute, from the standard
>> OpenLDAP distribution, which is also IA5String.
>> - Is there any way in Dovecot to encode the fields in base 64, to send
>> queries? as the query is "eq", this would be enough, I think.
> Check out: https://wiki2.dovecot.org/Variables?highlight=(base64)
> However, I never used this modifier and Aki pointed out, that UTF8
> usernames are not (100%) supported, yet.
>> - Or is the LDAP server is supposed to store attributes as UTF8, and
>> in this case, how to configure it that way?
> To achieve this, you must/can extend the schema with your own
> attribute that uses:
> "Directory String
> "The directory string syntax is basically a catch-all syntax for UTF-8
> strings. It allows values with this syntax to have any combination of
> one or more UTF-8 characters (empty directory string values are not
> allowed, although some directory servers ignore this constraint).
> "The directory string syntax is defined in RFC 4517 section 3.3.6, and
> has an OID of "188.8.131.52.4.1.14184.108.40.206.15"."
> Otherwise, you could _misuse_ an exiting attribute of this type unused
> in your directory otherwise.
> - -- Steffen Kaiser
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> -----END PGP SIGNATURE-----
Thank you, Steffen, this is a great link.
I am probably going to keep this attribute, and use base64, for now.
More information about the dovecot