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

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/G50ZXIsIG91PUT8c3NlbGRvcmYsIG89V2lydHNjaGFmdHN2ZXJlaW5pZ3VuZyBTdGFobCwgYnI9RXh0ZXJuYWwsIG89RXVyb2ZlciwgYz1iZQ==')
'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.