My Oracle Support Banner

ldapadd Error: 'Invalid Base 64 Encoding' (Doc ID 375952.1)

Last updated on AUGUST 20, 2019

Applies to:

Oracle Internet Directory - Version 10.1.2 to [Release 10gR2 to 10gR3]
Information in this document applies to any platform.


Unable to add users to OID using an ldif file created by another LDAP utility such as LDAP Browser.

The $ORACLE_HOME/bin/ldapadd command fails with error:

   invalid base 64 encoding text
   ldapadd: invalid format (line 5 of entry: cn=<USERNAME>, cn=Users, dc=<COMPANY>, dc=com

The error is produced at a line that contains a base 64 encoded attribute, denoted by 2 colons after the attribute name e.g.
   userpassword:: xxxxxxxxxxxxxxxxxxxxxxxxxx

NLS_LANG is set in the environment:

The problem does not reproduce with ldapadd on Windows or Solaris platforms.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.