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

Creating my own schema in OpenLdap 2.3

Hi All,
I am new to OpenLdap 2.3, and I am trying to create my own schema.

I follow the instruction in the guide in http://www.openldap.org/doc/admin23/quickstart.html
All the steps were OK regarding the test LDAP directory.

Now, I am trying to create my own schema:

1) I create an schema file that contains:

attributetype ( NAME 'schemaVersion'
	DESC 'name(s) associated with the object'
        EQUALITY caseIgnoreMatch
        SYNTAX{32768} )

objectclass ( NAME 'psRoot'
	DESC 'name associated with the object'
	MUST  schemaVersion  )

Before you ask, yes, is my own OID.

2) I added the following lines to the slapd.conf

include         etc/openldap/schema/mySchema.schema
database        bdb
suffix          "dc=root"
readonly off
rootdn          "cn=Manager,dc=root"
rootpw          secret
index   objectClass	eq
directory       /usr/local/mySchema/ldap
updatedn	"cn=Manager,dc=root"

3) I restarted the OpenLdap with the command

/usr/sbin/slapd -d 0xfffffff -f /etc/openldap/slapd.conf -F /etc/openldap

The OpenLdap started and no error message (that i can see) was posted to the consule.

4) I create an LDIF file that contains:

dn: dc=root
objectclass: psRoot
schemaVersion: 1

5) I run ldapadd(1) to insert these entries into my directory:

/usr/bin/ldapadd -x -D "cn=Manager,dc=root" -W -f ./temp.ldif -d 32768

I insert the password (secret), and I receive the following messages:

request done: ld 0x806b9a8 msgid 1
adding new entry "dc=root"
request done: ld 0x806b9a8 msgid 2
ldap_add: Internal (implementation specific) error (80)
        additional info: no structuralObjectClass operational attribute

Any one know, waht am I doing wrong?