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

Re: OpenLDAP 2.0.6 -> 2.0.7 problem (ITS#890)



chabrol@webonomics.de wrote:
Hi,

> This Syntax is according to the documentation an UTF-8 string. So it looks
> like I've to convert it. But there is too much data for a manual
> conversion. Is there a tool available to convert LDIF-Data from
> ISO-LATIN-1 to UTF-8?

    Try the 'iconv' utility: it supports conversion between many
character sets, including of course ISO-LATIN-1 and UTF-8.

> And there is an additional Problem: The attributes
> containing ISO-LATIN-1 characers are "binary" encoded in the LDIF-Data
> (for example cn:: S2xhdXMgVHL2bmRsZQ==). This data should be correctly
> converted to UTF-8. But the attribute userpassword looks like it is an
> normal octet string:
> 
> attributetype ( 2.5.4.35 NAME 'userPassword'
>         EQUALITY octetStringMatch
>         SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{128} )
> 
> I suppose if this data is also converted to UTF-8, this will break the
> userauthentication because. So the tool should leave the
> userpassword-attribute untouched. Has somebody a solution or tip?

    It should work since such characters are common to ISO-LATIN-1 and
UTF-8 (US-ASCII range).

        Jean-Philippe.

-- 
| Jean-Philippe BRUNON - AURORA