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

Modifying olcObjectClasses



Hi all,

I'm trying to do schema updates without restarting the OpenLDAP server
(2.3.24). Thus far, I've been able to add a new olcObjectClasses to the
schema, and add a corresponding object to the directory. Now, I'm trying
to understand how to modify an existing olcObjectClasses.

This is how the (relevant) current schema looks (when I use ldapsearch
on the schema branch):

# {5}core, schema, config
dn: cn={5}core,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: {5}core
olcObjectClasses: {0}( 1.1.6.9 NAME 'testObjClass' DESC 'testObjClass'
SUP top STRUCTURAL MUST cn MAY ( x121Address) )

######################################################################

I've prepared a file that contains:

dn: cn={5}core,cn=schema,cn=config
olcObjectClasses: ( 1.1.6.9 NAME 'testObjClass' DESC 'testObjClass' SUP
top STRUCTURAL MUST cn MAY ( o) )

######################################################################

When I ran the ldapmodify command, I get the following output:

> ldapmodify -x -w password -D "cn=config" -f ./config_input2.ldif 
modifying entry "cn={5}core,cn=schema,cn=config"
ldap_modify: Internal (implementation specific) error (80)
        additional info: cannot delete olcObjectClasses

Could someone please explain, why the modify command does not succeed ?

Thanks in advance,
  Eran