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

Re: Import base64 info



Ese es tu error no lo hagas asi simplemente reemplaza la à por la N usa la herramienta que de mencione o simplemente haz un ldapmodify
reviza el sizelimit de tu archivo de configuracion que tenga seteado un 100000 minimo ese puede ser una cauza tambien

Atento a sus comentarios

Jorge Armijo
Ingeniero de Soporte
Soporte Libre Cia. Ltda.

D: Hernandez de Giron Oe4-175 y Vasco de Contreras
T: +593 (2) 331-9027
F: +593 (2) 243-1103
@: jorge.armijo@soportelibre.com
www.soportelibre.com

----- Mensaje original -----
De: "arantza serrano" <zazu2276@hotmail.com>
Para: "Erwann Abalea" <eabalea@gmail.com>
CC: openldap-technical@openldap.org
Enviados: Lunes, 11 de Marzo 2013 8:46:22 GMT -05:00 Colombia
Asunto: 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.