Used charset in ldap tree

Dieter Kluenter dieter at dkluenter.de
Thu Jul 21 15:49:40 CEST 2005


Frank Matthieß <frankm at lug-owl.de> writes:

> Dieter Kluenter [2005-07-20 18:48 CEST]:
>> Frank Matthieß <frankm at lug-owl.de> writes:
>> 
>> > Dieter Kluenter [2005-07-20 16:13 CEST]:
>> >> Frank Matthieß <frankm at lug-owl.de> writes:
>> > [...]
>> >> 
>> 
>> > Thanks for explaning this in detail.
>> >
>> > Ok. So i translate an iso-8859-15 ldif file to an utf-8 encoded file and
>> > should encode the values with special characters with base64 too.
>> 
>> No, if you want to add or modify entries by means of an ldif file, you
>> just convert iso8859-15 to UTF-8. The tool iconv is quite handy for
>> this purpose. iconv -f iso8859-15 -t utf-8 -o myfile-utf-8.txt myfile.txt
>
> Thanks for the hint to iconv.
>
> Now i tried this: iso-8859-15
>
> $ /kolab/bin/ldapadd -D "cn=manager,cn=internal,dc=bsv,dc=lan" -W -f testimport.ldif
> Enter LDAP Password:
> adding new entry "cn=Süd, Afrika,cn=external,dc=bsv,dc=lan"
> ldap_add: Invalid DN syntax (34)
>         additional info: invalid DN
[...]
> The files:
> testimport.ldif:
> #  Süd, Afrika bsv.lan Lists/cn=Oeffentlich
> dn: cn=Süd, Afrika,cn=external,dc=bsv,dc=lan
> objectClass: top
> objectClass: inetOrgPerson
> objectClass: kolabInetOrgPerson
> sn: Süd
> cn: Süd, Afrika
> givenName: Afrika
> mail: mbox at mail.addr.tld

> Any idea?
>
Yes.
The error report is correct, the relative distinguished name "cn=Süd,
Afrika"  is incorrect.
The comma is a special character in a distinguished name, thus you
have to escape a comma, if you really need it. 

-Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6




More information about the users mailing list