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

Modifying schemas



Hi, I need for help, I'm trying manage my schemas using the config tree, but
it doesn't work. The entry was added but the openldap don't allow modify it.
To add the entry I'm using the follow ldif file:

-------------------------------------------------------------------------------------------------------------
dn: cn={1}test,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: {1}test
olcAttributeTypes: ( 2.5.4.55 NAME 'version'
        EQUALITY caseIgnoreMatch
        ORDERING caseIgnoreOrderingMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
-------------------------------------------------------------------------------------------------------------
I use ldapadd to add this entry. I'm trying to modify the NAME to 'version1'
for example but the openldap do not allow. I'm using ldapmodify with the
follow ldif file:

-------------------------------------------------------------------------------------------------------------
dn: cn={1}test,cn=schema,cn=config
changetype: modify
olcAttributeTypes: {0}( 2.5.4.55 NAME 'version1'
        EQUALITY caseIgnoreMatch
        ORDERING caseIgnoreOrderingMatch
        SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
------------------------------------------------------------------------------------------------------------

The error that was returned is:

ldap_initialize( <DEFAULT> )
replace olcAttributeTypes:
        {0}( 2.5.4.55 NAME 'version'       EQUALITY caseIgnoreMatch
ORDERING caseIgnoreOrderingMatch       SYNTAX
1.3.6.1.4.1.1466.115.121.1.15SINGLE-VALUE )
modifying entry "cn={1}test,cn=schema,cn=config"
modify complete
ldap_modify: Internal (implementation specific) error (80)
        additional info: cannot delete olcAttributeTypes


The same occur when I try to modify a olcObjectClasses, but the message is
"cannot delete olcObjectClasses"
Some body can help me?

I'm using the OpenLDAP 2.3.11


-----------------------------------------------------------
thanks, and sorry my english
Renato Oliveira.