Unable to add attribute in custom object class – OpenDJ 3.5.3

This topic has 5 replies, 2 voices, and was last updated 3 years, 10 months ago by srinath.m.

  • Author
    Posts
  • #23792
     srinath.m
    Participant

    Hi All,

    I have created a custom object class ‘testuserclass’ and added a new attribute ‘timezone’
    as below in OpenDJ(/path/to/DJ/config/schema/99-user.ldif)

    Code :

    attributeTypes: ( customentity-oid NAME 'customentity' EQUALITY 2.5.13.2 ORDERING 2.5.13.3 SUBSTR 2.5.13.4 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE
     userApplications X-APPROX '1.3.6.1.4.1.26027.1.4.1' )
     
    attributeTypes: ( timezone-oid NAME 'timezone' EQUALITY 2.5.13.2 ORDERING 2.5.13.3 SUBSTR 2.5.13.4 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 USAGE 
    userApplications X-APPROX '1.3.6.1.4.1.26027.1.4.1' X-SCHEMA-FILE '99-user.ldif' )
    
    objectClasses: ( testuserclass-oid NAME 'testuserclass' SUP 2.16.840.1.113730.3.2.2 STRUCTURAL MUST customentity MAY ( timezone ) X-SCHEMA-FILE '99-user.ldif' )

    After save, restarted OpenDJ server and no errors from logs.

    When I connect OpenDJ via Apace Directory Studio, I cannot find the attribute ‘timezone’ to add for a user.

    Env Details : OpenDJ 3.5.3

    Any help on this would be appreciated.
    Thanks,
    Srinath

    #23793
     Ludo
    Moderator

    You night to start reading the schema with ldapsearch.
    It is possible that Apache Directory Studio cannot read the schema definition because it contains elements that are not supported. More specifically X-APPROX is not supported by OpenDJ nor by the Studio afaik.

    #23794
     Ludo
    Moderator

    Although, testing with latest version of ForgeRock DS and Apache Directory Studio, everything works as expected.
    You cannot add the attribute timezone to an existing user, unless it has the testuserClass objectClass.
    My guess is that none of your existing users have such objectClass.

    #23822
     srinath.m
    Participant

    Hi @ludo,
    Thanks for the reply.

    The custom object class ‘testuserclass’ is already present on DEV environment where I was able add the custom attribute ‘timezone’ to the existing users. But when I try the same on other environment where timezone attribute is not available under ‘testuserclass’ to add to exiting users. I cannot see any errors in the logs. I have compared 99-user.ldif files from both environments but no luck.

    Thanks,
    Srinath

    #23823
     Ludo
    Moderator

    Sorry, it seems that you got it to work in a dev environment. So, you should be able to find how to reproduce in other environments.
    I did test, added the schema over LDAP, installed and used Apache Directory Studio to add the “testuserClass” to any user, and then add the “timezone” attribute to that user. It works.
    So, your issue is probably not a software issue.

    #23824
     srinath.m
    Participant

    Thanks @ludo for pointing me in the right direction. I will try to reproduce the same in other environments too.

    thanks
    Srinath

Viewing 6 posts - 1 through 6 (of 6 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?