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

Problem Upgrade version 1.2.10 to 2.0.6



 Hi all, I'm Alfredo Pulido,

    When  I upgrade  of 1.2.10  to 2.0.6 version, I have a problem. The
system run slapd, and they are a error

" No objectClass "top" defined in schema".

My configuration is:

SLAPD.CONF

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include         /usr/local/etc/openldap/slapd.at.conf
include         /usr/local/etc/openldap/slapd.oc.conf
schemacheck     off
#referral       ldap://root.openldap.org/
#include         /usr/local/etc/openldap/schema/core.schema
#include        /usr/local/etc/openldap/schema/cosine.schema
#include        /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args



#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "o=domain.com, c=es"
rootdn          "cn=root, o=domain.com, c=es"
rootpw          xxxxxx
# cleartext passwords, especially for the rootdn, should
# be avoid.  See slapd.conf(5) for details.
directory       /usr/tmp/
replogfile      /usr/tmp/slapd.log

loglevel 128
mode 0600

defaultaccess none

access to dn=".*, o=domain.com, c=es" attr=mail by self write by dn=".*,

o=domain.com, c=es" search by * compare
access to dn=".*,o=domain.com,c=es" by self write by
dn=".*,o=domain.com, c=es" search by * none

-------------------------

**************************************************

        If in the file slapd.conf I don't comment  this lines:

include         /usr/local/etc/openldap/schema/core.schema
include        /usr/local/etc/openldap/schema/cosine.schema
include        /usr/local/etc/openldap/schema/inetorgperson.schema


    When I create the Data Base , they are a problem:


apc:/ldap#ldif2ldbm -f /ldap/slapd.conf -i /ldap/organizacion.ldif
/usr/local/etc/openldap/schema/core.schema: line 114: expecting
"requires" or "allows" got "2.5.20.1"
<oc clause> ::= objectclass <ocname>
                [ requires <attrlist> ]
                [ allows <attrlist> ]


This is file core.schema for LINE 114:

# Object Classes from RFC2252
objectclass ( 2.5.20.1 NAME 'subschema' AUXILIARY
        DESC 'RFC2252: controlling subschema'
        MAY ( dITStructureRules $ nameForms $ ditContentRules $
                objectClasses $ attributeTypes $ matchingRules $
               matchingRuleUse ) )       <-- ****LINE 114****


My organizacion.ldif is:

dn: o=domain.com, c=es
o: domain.com
objectclass: organization
objectclass: top


Please can you help me ?

WHAT IS THE PROBLEM?



Thank you.........