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

Re: LDIF export problem



Guten Tag Herr Lopes,

Dienstag, 23. Oktober 2001, 13:19:32, schrieben sie:

JL> Here is something interesting:

JL> Doing a local export on a solaris machine, using openldap 2.0.7 and the slapcat utility I got (many like) this:

JL> dn: ou=Dir.Coord.Empresas - Norte-BTA,o=BS Portugal,c=PT,r=Grupo Santander
JL> nomeResponsavel:: QW50w7NuaW8gU2lsdmEgQ2FybmVpcm8gKGRyKQ==

JL> The problem is that "nomeResponsavel" should be:

JL> nomeResponsavel: António Silva Carneiro (dr)

JL> slapcat does not like the international chars and I get this:  nomeResponsavel:: QW50w7NuaW8gU2lsdmEgQ2FybmVpcm8gKGRyKQ==
JL> This is a problem since I have a large database that I need to ldif and many of the entries have international chars.
JL> Any way around this?
JL> Thanks.

JL> John

the Problem here is... that "slapcat" and "slapadd" (OpenLDAP) handles
international chars in UTF-8 and BASE64 encoded.
... this means you have to write a Script, that recode the rest of every line
where the attribut is ending with "::" which somethink like
>recode /64..utf8..<
... befor this, you have to handle with, that long lines will be
broken by continue it on next line with a single "<space>" in front

see older Mailings for this Problem.

Mit freundlichen Grüssen

Felix Meulenkamp 

--

Energis-ISION
Felix Meulenkamp
Professional Services - Software Engineer
In der Steele 35
40599 Duesseldorf

Phone: +49 202 495-362
Fax:   +49 202 495-399

eMail: felix.meulenkamp@energis-ision.com
Web:   http://www.energis-ision.com