arantza serrano writes:
cn:: Q0FNSdFBCg== (...) ldap_add: Invalid syntax (21) additional info: cn: value #0 invalid per syntax
Convert the value to UTF-8. Most LDAP attributes require UTF-8 or ASCII. So does LDIF format. (Any non-UTF-8 data, for example for userPassword, must therefore be base64-encoded in LDIF.)