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

Re: ldapadd: Invalid syntax (21)

François Mehault writes:
> ldapadd: Invalid syntax (21)
>         additional info: objectClass: value #1 invalid per syntax

> objectClass: dcObject
> objectClass: organizationUnitName

2nd line ("value #1" is counted from 0) should be
  objectClass: organizationalUnit

organizationUnitName is a misspelling of "organizationalUnitName" which
is an alias for the attribute type "ou".

To keep those straight, think of the LDAP/X.500 data model: An LDAP
entry describes some real-world entity, and its objectClass indicates
what kind of entity it describes:  In this case an organizational
unit (department, institute, whatever), not just the unit's name.
*One* of the things it must say is the org.unit's name, so
it must contain "ou" aka "organizationalUnitName".