I want to initially add a couple of organisations. So I created an organisations.ldif
in order to add them via
ldapadd -Q -Y EXTERNAL -H ldapi:/// -W -f organisations.ldif
My file looks like this
dn: dc=example,dc=com
o: org1
objectClass: top
objectClass: organization
description: Organisational container for #1
dn: dc=example,dc=com
o: org2
objectClass: top
objectClass: organization
description: Organisational container for #2
But I get the error
adding new entry "dc=example,dc=com"
ldap_add: Object class violation (65)
additional info: attribute 'dc' not allowed
What's wrong here?