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

Re: LDIF and UTF8

Geert Van Muylem wrote:
> # Gérard,Hoogstraten,BE
> "dn:: Q049R8OpcmFyZCxMPUhvb2dzdHJhdGVuLEM9QkU="
> objectclass: Top
> objectclass: person
> objectclass: organizationalPerson
> "cn:: R8OpcmFyZA=="
> "sn: R8OpcmFyZA=="
> Also why doesn't rfc 2849 use these quotes in the examples?

Because the quotes are not part of LDIF syntax. Simply remove them.
Pierangelo quoted your example to separate it from his text.

Your example must look like this:

# Gérard,Hoogstraten,BE
dn:: Q049R8OpcmFyZCxMPUhvb2dzdHJhdGVuLEM9QkU=
objectclass: Top
objectclass: person
objectclass: organizationalPerson
cn:: R8OpcmFyZA==
sn:: R8OpcmFyZA==

Note the double colons indicating the use of base64. Read RFC2849 more
carefully or use a decent LDIF module for your programming language.

Ciao, Michael.

Michael Ströder
E-Mail: michael@stroeder.com

> -----Original Message-----
> From: Pierangelo Masarati [mailto:ando@sys-net.it] 
> Sent: maandag 7 november 2005 18:06
> To: geert.van.muylem@skynet.be
> Cc: openldap-software@openldap.org
> Subject: Re: LDIF and UTF8
>>dn: Q049R8OpcmFyZCxMPUhvb2dzdHJhdGVuLEM9QkU=
> ^^^ try putting "dn:: Q049R8OpcmFyZCxMPUhvb2dzdHJhdGVuLEM9QkU=" here; the
> double colon indicates base64 representation of subsequent value.