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

RE: Import base64 info



Hello,
 
I've converted it:
 
echo "CAMIÑA"|iconv -f iso-8859-1 -t utf-8
CAMIÑA
 
And the ldapadd works!:
 

/opt/openldap/bin/ldapadd -x -D "root_dn" -w pass_dn << _EOF

dn: uid=usu3,ou=users,o=my_organization

uid: usu2

objectClass: top

objectClass: person

objectClass: organizationalperson

objectClass: inetorgperson

cn: CAMIÑA

sn: my_sn

mail: my_mail@mydomain.com

userPassword: usuario

_EOF

adding new entry "uid=usu3,ou=users,o=my_organization"
 
thanks!!

 

Date: Mon, 11 Mar 2013 14:35:05 +0100
Subject: Re: Import base64 info
From: eabalea@gmail.com
To: zazu2276@hotmail.com
CC: openldap-technical@openldap.org

It looks like your cn value is ISO-8859-{1,15}.
Convert it into UTF8. All strings MUST be UTF8 encoded.

2013/3/11 arantza serrano <zazu2276@hotmail.com>

Hello,

 

I’m trying to import my LDIF  where some attributes are in base64:

 

/opt/openldap/bin/ldapadd -x -D "root_dn" -w pass_dn << _EOF

dn: uid=usu3,ou=users,o=my_organization

uid: usu2

objectClass: top

objectClass: person

objectClass: organizationalperson

objectClass: inetorgperson

cn:: Q0FNSdFBCg==

sn: my_sn

mail: my_mail@mydomain.com

userPassword: usuario

> _EOF

 

Then I get this error:

 

adding new entry " uid=usu3,ou=users,o=my_organization "

ldap_add: Invalid syntax (21)

        additional info: cn: value #0 invalid per syntax

 

If I decode the value, I get the same error:

 

 

/opt/openldap/bin/ldapadd -x -D "root_dn" -w pass_dn << _EOF

dn: uid=usu3,ou=users,o=my_organization

uid: usu2

objectClass: top

objectClass: person

objectClass: organizationalperson

objectClass: inetorgperson

cn: CAMIÑA

sn: my_sn

mail: my_mail@mydomain.com

userPassword: usuario

_EOF

adding new entry " uid=usu3,ou=users,o=my_organization "

ldap_add: Invalid syntax (21)

        additional info: cn: value #0 invalid per syntax

 

How can I import my LDIF?

 

Thanks!




--
Erwann.