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!