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

RE : Non ASCII char in dn?

Still doesn't work for me...

Other quick question, is it important that the dn is the same as an
attribute? Like say I put:

dn: o=some company name,dc=mydomain,dc=com
o: some other company name

That's the only way I got it to work for now, I would like to be able to
put the same name in the DN but it won't take French chars yet... is
there a way to define a char set in the openldap config file?

Jean-Rene Cormier

-----Message d'origine-----
De : owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] De la part de Pierangelo
Envoyé : 10 avril, 2002 19:57
À : Stig Venaas
Cc : Michael Ströder; Jean-Rene Cormier; OpenLDAP List
Objet : Re: Non ASCII char in dn?

Stig Venaas writes: 

> On Wed, Apr 10, 2002 at 07:09:37PM +0200, Michael Ströder wrote:
>> Pierangelo Masarati wrote:
>> > Jean-Rene Cormier wrote:
>> > 
>> >>Is there a way to put Non ASCII chars in the dn? I'm trying to add
>> >>entries using dn: o=some company,ou=someplace,dc=mydomain,dc=com
>> >>french characters in the o but it doesn't work even if it's UTF8
>> >>is there another way I can do that?
>> > 
>> > The generic answer is: yes; see rfc2256 and
>> > basically you need to turn them in UTF-8 and then encode them as 
>> > '\'+HEXPAIR, where HEXPAIR is a couple of hexadecimal digits that 
>> > represent each octet of your char. 
>> Is hex-escaping really necessary for UTF-8 chars?
>> I understand RFC2253, section 2.4 a little bit different.
> Me too, I really think that it shouldn't be necessary.

OK, you're right: all you need is use UTF-8; in fact we ended up
using plain UTF-8 in DN pretty form, with escaping of special chars
only for optimization. 

Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 |
via La Masa 34, 20156 Milano, Italy   |