Re: Using UTF-8 in DN
Graham Barr <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.ldap |
|---|---|
| Message-ID | <[email protected]> |
On May 13, 2009, at 7:51 AM, Dmitry Katsubo wrote: > Dear Perl LDAP users! > > I wonder, if somebody has succeeded to use UTF-8 symbols in DN. Here > and > there it is mentioned, that this is supported. But with my OpenLDAP > v2.4.11 the following command fails and I don't see any reason why. > The > only reason why > > Maybe RFC2253 should be used to represent UTF-8 chars? > > I also suffer from a limitation, that "email" attribute may only > contain > ASCII chars. For example, I cannot set: > > mail: Rudolf Bünger <[email protected]> You started by discussing DNs but now you turn to the email attribute. The mail attribute is defined in schema as caseIgnoreIA5Match which does mean that its characters must be from the IA5 character set (basically ASCII) email headers are also restricted to ascii and non-ascii characters are encoded using RFC2047 You can get this in perl using encode('MIME-Q', $email) Having said that, alsthough the descripion of the mail attribute is "RFC1274: RFC822 Mailbox" I have never seen anyone use the full mailbox definition in the mail attribute but only addr-spec most applications I know build the full email mailbox using cn, or givenName and sn, and mail. So mail would only hold the actual address. Graham.