This topic has 4 replies, 2 voices, and was last updated 2 years, 10 months ago by dwindau.

  • Author
    Posts
  • #19010
     dwindau
    Participant

    Hi!

    I’ve compiled the OpenDj server-project successfully and now I’m trying to create a plugin, that provides reciprocal attribute handling. I’ve compiled the plugin after having a lot of trouble to change all the maven dependencies in the POM files and copied it into the right folders. Then I tried to register the plugin with the server with the following command (looked it up in the official documentation):

    dsconfig -hhostname-p 4444 -D "cn=Directory Manager" -w $PW create-plugin --plugin-name "Example Plugin" --type example --set enabled:true --set plugin-type:startup --set java-class:com.example.opends.ExamplePlugin -X -n

    I get the error that “example” is not a valid type and changed it to the most obvious “custom”, followed by this error message:

    Unwilling to Perform: The Directory Server is unwilling to add
           configuration entry cn=Example Plugin,cn=Plugins,cn=config because one
           of the add listeners registered with the parent entry
           cn=Plugins,cn=config rejected this change with the message: The Plugin
           could not be decoded due to the following reason: The value
           "com.example.opends.ExamplePlugin" is not a valid value for the
           "java-class" property, which must have the following syntax: CLASS <=
           org.opends.server.api.plugin.DirectoryServerPlugin

    Leaving the “–set java class:”-part it says the property java-class is not defined. I’d like to solve this problem but I don’t really have a clue what the problem actually is.

    Can anyone here help me?

    With kind regards,

    dwindau

    #19011
     JnRouvignac
    Participant

    Hello,

    What is the java class name of your DirectoryServerPlugin?
    Also, in the XML configuration file, what is the value of the attribute name for the <adm:managed-object> element?

    Cheers,
    Jean-Noel

    #19019
     dwindau
    Participant

    Hi.

    Thanks for your answer!

    java class name: opendj-server-example-plugin/src/main/java/com/example/opendj/ExamplePlugin.java

    (but it doesn’t seem to inherit anything from DirectoryServerPlugin)

    <adm:managed-object name=”example-plugin” […]>

    I really appreciate your help.

    With kind regards,

    dwindau

    PS: If there are several answers from me: I can’t see them, since the forum seem to have eaten them (sorry!).

    • This reply was modified 2 years, 10 months ago by dwindau.
    • This reply was modified 2 years, 10 months ago by dwindau.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2020 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?