Re: Using UTF-8 in DN

Peter Marschall <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Organization ADPM
Message-ID <[email protected]>
Hi,

On Wednesday, 13. May 2009, 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.
I can confirm that using UTF8-for DNs (and other other UTF8-capable 
attributes) works well both with OpenLDPA and perl-ldap.

When writing to LDAP perl-ldap autoagically does the right thing, when 
querying the server you may need to use the raw option to the search()
method.


> But with my OpenLDAP 
> v2.4.11 the following command fails and I don't see any reason why. The
> only reason why

The reason for the failure is easy to see, once you decode the base64-encoded
DN in your example:
	Кацубо Владимир,cn=persons,cn=centurion

This is simply no legal DN (Hint: it lacks the attribute name in the RDN).

Regards
Peter

-- 
Peter Marschall
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.