How to add new entry under root entry in openDJ

Tagged: , ,

This topic has 1 reply, 2 voices, and was last updated 7 years, 5 months ago by Ludo.

  • Author
    Posts
  • #3205
     sohanb
    Participant

    I want to completely create new entry using ‘xyz’ object class and add attributes within that new entry. With my code i am able to access ldap schema, add attributes to groups or users .
    I am just wondering how can i add new entry to schema which will have new attributes within it.
    I have java code to add attributes to user/groups but not sure how to add new entry under base entry
    eg:
    o=openam
    —+ ou=groups
    —+ ou=users
    —+ o=secure_obj //how to add using API’s ???

    I want to add “o=secure_obj” entry using java code. I am able to do manually using active dir studio tool. Is there any API to do it ?

    #3211
     Ludo
    Moderator

    Hi,

    There are several Java API to do LDAP operations, such as Java JNDI or OpenDJ LDAP SDK. You will need to read each API to understand how to add entries or subentries.
    When it comes to managing schema, this is specific to OpenDJ. You can modify the schema with LDAP operations to add or delete ObjectClasses and AttributeTypes definitions.
    Details for managing OpenDJ schema is in the Administration Guide: http://opendj.forgerock.org/opendj-server/doc/bootstrap/admin-guide/index.html#chap-schema

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