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

base64



Hi, im triying to insert:

dn: dc=setravi,dc=df,dc=gob,dc=mx
objectclass: top
objectclass: organization
objectclass: dcObject
dc: df
o: Secretaría de Transportes y Vialidad
description: Secretaría de Transportes y Vialidad

into my ldap directory (RedHat 7.1, openldap-servers-2.0.7-14,
openldap-clients-2.0.7-14), i know that i must convert "Secretaría de
Transportes y Vialidad" to base64, so then the data is:

dn: dc=setravi,dc=df,dc=gob,dc=mx
objectclass: top
objectclass: organization
objectclass: dcObject
dc: df
o:: U2VjcmV0YXLtYSBkZSBUcmFuc3BvcnRlcyB5IFZpYWxpZGFk
description:: U2VjcmV0YXLtYSBkZSBUcmFuc3BvcnRlcyB5IFZpYWxpZGFk

then:

[root@ek upgrade]# ldapadd -W -v -x -D "cn=Manager, dc=setravi, dc=df,
dc=gob, dc=mx" -f top-setravi.df.gob.mx.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
add objectclass:
	top
	organization
	dcObject
add dc:
	df
add o:
	NOT ASCII (36 bytes)
add description:
	NOT ASCII (36 bytes)
adding new entry "dc=setravi,dc=df,dc=gob,dc=mx"
ldap_add: Invalid syntax
	additional info: value contains invalid data

ldif_record() = 21

I cant find the problem.
Thanks