Writing own password validator

Tagged: ,

This topic has 8 replies, 4 voices, and was last updated 5 months, 1 week ago by d.rosales.carranza.

  • Author
    Posts
  • #11326
     avinashch
    Participant

    Hi,

    From the documentation, I understand I need to extend org.opends.server.api.PasswordValidator class to write
    a new password validator. I think I need to write couple of other classes as well which extends predefined classes
    listed below

    MyPasswordValidatorCfg extends org.forgerock.opendj.server.config.server.PasswordValidatorCfg

    MyPasswordValidatorCfgClient extends org.forgerock.opendj.server.config.client.PasswordValidatorCfgClient

    MyPasswordValidatorCfgDefn extends ManagedObjectDefinition<LengthBasedPasswordValidatorCfgClient, LengthBasedPasswordValidatorCfg>

    But where do I need to deploy my password validator .class files in the opendj server and any other inputs/steps related to writing my own password validator.

    #11327
     Ludo
    Moderator

    The Cfg Classes are generated automatically by our factory, from an XML description file.
    Please check the Example Plugin folder for example and details.

    #11329
     JnRouvignac
    Participant

    This is the opendj-server-example-plugin in the opendj repository.

    #11546
     avinashch
    Participant

    Hi,

    I Am trying to write a new password validator extension using the Example Plugin folder supplied in the OpenDJ installation.

    I understand we build it using ant script, however I would like to maintain it(Example plugin) as a maven project so that I can push my password validator as a maven project in to SCM, also I need not bother about the dependent libraries like Xalan jars and any other required jars.

    Questions
    1. Do we have “Example plugin” maven project?

    #11551
     JnRouvignac
    Participant

    Hello,

    Which OpenDJ version are you targeting?

    Building plugins with Ant is deprecated.
    The OpenDJ repository has a maven based opendj-server-example-plugin module. You should use this as a base for developing plugins. Note that you will only be able to use such plugins from OpenDJ 3.5 (release is imminent).

    See opendj-server-example-plugin module:
    * https://stash.forgerock.org/projects/OPENDJ/repos/opendj/browse/opendj-server-example-plugin
    * or https://github.com/ForgeRock/opendj/tree/master/opendj-server-example-plugin

    Jean-Noel

    #11552
     avinashch
    Participant

    Hi,

    We are using OpenDJ 2.6.3

    #11553
     JnRouvignac
    Participant

    For 2.6.3 the only solution is the Ant based build.

    #11556
     avinashch
    Participant

    Ok. Thanks

    #26941

    Did you achieve this? you have some example code using the plugin example

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