Error while creating new Attribute using Control panel

Tagged: 

This topic has 7 replies, 4 voices, and was last updated 6 years, 5 months ago by Firos.

  • Author
    Posts
  • #9749
     Firos
    Participant

    Got Error while creating new Attribute using Control panel!

    An error occurred creating attribute ‘test’. Check details for more information.Details: org.opends.guitools.controlpanel.task.OnlineUpdateException: Error updating schema. Details: javax.naming.directory.SchemaViolationException: [LDAP: error code 65 – Entry cn=schema cannot be modified because the resulting entry would have violated the server schema: Entry cn=schema violates the Directory Server schema configuration because it includes attribute olcAttributeTypes which is not allowed by any of the objectclasses defined in that entry]; remaining name ‘cn=schema’

    What it means and whats the issue ?

    #9751
     Firos
    Participant

    Issue Resolved…

    There is a file named as “98-na.ldiff”,
    which contains entry,

    dn: cn=schema
    objectClass: top
    objectClass: ldapSubentry
    objectClass: subschema
    cn: schema
    olcAttributeTypes: {0}( 1.3.6.1.4.1.39937.1.1.1 NAME ‘allowedService’ DESC ‘Al
    lowed service’ EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.
    26{256} )
    …….
    …….
    olcObjectClasses: {0}( 1.3.6.1.4.1.39937.1.1 NAME ‘companySimpleAccessCont
    rol’ DESC ‘Company Object Class for Access Control’ SUP top AUXILIARY MAY
    ( allowedService $ allowedServer $ allowedPublicSite $ allowedPrivateSite ))
    ……..

    I dont know how these file came up (I have imported some entries from ldap to OpenDJ)
    I removed this and i could add new attributes now.

    What are these attributes and classes ?. How they came up ?

    • This reply was modified 6 years, 5 months ago by Firos.
    #9752
     Rajesh R
    Participant

    @Firos, see if the following video logs help. It walks through adding a new attribute in OpenDJ using Control Panel. You can skip to 7:08 minute of the video to get save time:

    https://www.youtube.com/watch?v=4bF2ZFa0dJ4

    #10039
     Chris Ridd
    Participant

    FWIW the error looks like you’re trying to add an attribute called “olcAttributeTypes” to the cn=schema entry – or perhaps it already exists on the cn=schema entry. You should only normally have objectClass, attributeTypes, objectClasses, and maybe ldapSyntaxes in the entry. In other words your 99-user.ldif file looks more like this:

    
    dn: cn=schema
    objectClass: top
    objectClass: ldapSubentry
    objectClass: subschema
    attributeTypes: [....]
    objectClasses: [....]
    

    So check your cn=schema entry doesn’t contain any strange attributes…

    #10064
     Ludo
    Moderator

    olcAttributeTypes and olcObjectClasses are OpenLDAP schema attribute names which are not standard and very specific to OpenLDAP.

    #10066
     Firos
    Participant

    Ludo,

    I haven’t added these attributes manually, i think it comes while importing LDAP files to OpenDJ. is it?

    #10088
     Ludo
    Moderator

    Firos,

    I don’t know. You would know the files you are trying to import to OpenDJ and where they are coming from :)
    In OpenDJ, you should only import user related data. If that data relies on specific schema, the schema need to be prepared and added to the server prior to importing the user data. The Administration Guide has a section on managing the schema.

    #10093
     Firos
    Participant

    Yes its coming while exporting files from LDAP

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?