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

RE: special characters



Thanks Michael,

Which tool(s) can I use for convert my file in UTF8 ?
Why slapadd does not convert automatically ISO-8850-1 to UTF8 ?

Guy

-----Original Message-----
From: michael@junker.stroeder.com [mailto:michael@junker.stroeder.com]On
Behalf Of Michael Stroder
Sent: Thursday, July 05, 2001 1:54 PM
To: De Leeuw Guy
Cc: openldap-software@OpenLDAP.org
Subject: Re: special characters


De Leeuw Guy wrote:
>
> The ldif file produced by the 2.0.6 is not compatible with the slapadd
> V2.0.11.
> see the error
>
> str2entry: invalid value for syntax 1.3.6.1.4.1.1466.115.121.1.15

It's probably not the LDIF. I guess that OpenLDAP 2.0.11 is more
strict with checking the syntax 1.3.6.1.4.1.1466.115.121.1.15 than
2.0.6 was. You have to correct these entries first.

Looking at your example (in Python):
>>>
base64.decodestring('Y249S29jaCBH/G50ZXIsIG91PUT8c3NlbGRvcmYsIG89V2lydHNjaGF
mdHN2ZXJlaW5pZ3VuZyBTdGFobCwgYnI9RXh0ZXJuYWwsIG89RXVyb2ZlciwgYz1iZQ==')
'cn=Koch G\xfcnter, ou=D\xfcsseldorf, o=Wirtschaftsvereinigung
Stahl, br=External, o=Eurofer, c=be'
>>>

Well, you have encoded the german umlauts as ISO-8859-1 chars in
that DN. This is not allowed in LDAPv3. Sanitize your directory
data.

Ciao, Michael.