Am Mon, 11 Mar 2013 13:01:21 +0000 schrieb arantza serrano <[email protected]>:
> 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: [email protected] > 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: [email protected] > 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? The character set of the lidf file is not UTF-8 but Windows-1252. -Dieter -- Dieter Klünter | Systemberatung http://dkluenter.de GPG Key ID:DA147B05 53°37'09,95"N 10°08'02,42"E
