June 16, 2016 at 2:46 pm #11326
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
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.June 16, 2016 at 2:50 pm #11327LudoModerator
The Cfg Classes are generated automatically by our factory, from an XML description file.
Please check the Example Plugin folder for example and details.June 16, 2016 at 3:13 pm #11329
This is the
opendj-server-example-pluginin the opendj repository.June 24, 2016 at 8:20 am #11546
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.
1. Do we have “Example plugin” maven project?June 24, 2016 at 9:09 am #11551
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:
* or https://github.com/ForgeRock/opendj/tree/master/opendj-server-example-plugin
Jean-NoelJune 24, 2016 at 9:25 am #11552
We are using OpenDJ 2.6.3June 24, 2016 at 9:28 am #11553
For 2.6.3 the only solution is the Ant based build.June 24, 2016 at 9:45 am #11556
Ok. ThanksOctober 22, 2019 at 9:04 pm #26941d.rosales.carranzaParticipant
Did you achieve this? you have some example code using the plugin example
You must be logged in to reply to this topic.