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

"slapadd could not parse entry" & "ldap_add: Invalid syntax (21)" errors


I'm trying to import the LDIF file (attached), but both comands return an error. The "slapadd" says there's a problem to parse and entry and the "ldapadd" announces syntax problems. I've been fighting that for a whole day, no success.

I attach hereto the LDIF file, the CONF file and both error outputs.

Any help will be greatly appreciated.



C:\OpenLDAP>ldapadd -x -h -p 389 -D cn=jdoe,dc=enterprise,dc=otn,
dc=com -w jdoe -f init.ldif
adding new entry "dc=enterprise,dc=otn,dc=com"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #2 invalid per syntax

Attachment: init.ldif
Description: Binary data

>>> dnPrettyNormal: <dc=enterprise,dc=otn,dc=com>
<<< dnPrettyNormal: <dc=enterprise,dc=otn,dc=com>, <dc=enterprise,dc=otn,dc=com>

str2entry: invalid value for attribute objectClass (syntax
slapadd: could not parse entry (line=30)

Attachment: slapd.conf
Description: Binary data