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

Re: init.ldif not working

Edward de Jongh a écrit :

Hi as far as I can see this file adapted from the TLS tutorial should be fine:




dn: dc=acompany,dc=co,dc=za

objectclass: dcObject

objectclass: organization

o: Acompany

dc: acompany


dn: cn=LDAP_ADMIN,dc=acompany,dc=co,dc=za

objectclass: organizationalRole



dn: ou=Acompany SomeDepartment,dc=acompany,dc=co,dc=za

objectclass: organizationalUnit

ou: Acompany SomeDepartment

description: Test organizational unit to hold admin user


dn: cn=mr admin,ou=Acompany SomeDepartment,dc=acompany,dc=co,dc=za

objectclass: person

userPassword: testpass

description: mr admin test user

cn: mr admin

sn: admin


However when I try ldap add it I get


ldap_add: Invalid syntax (21)

        additional info: objectclass: value #0 invalid per syntax

May it be a file format problem (CRLF instead of LF only) or extra spaces after the objectClass ?


Here are my shema refs from my slapd.conf:


include         /opt/openldap/etc/openldap/schema/core.schema

include         /opt/openldap/etc/openldap/schema/cosine.schema

include         /opt/openldap/etc/openldap/schema/inetorgperson.schema

include         /opt/openldap/etc/openldap/schema/openldap.schema


Am I missing a schema?