README revision bb8874d71cdd8e5288297b9727703437c6dfcfed
3063N/AThis folder contains source code for an example "Hello World" style
3063N/Aplugin. It features a plugin which has a configurable message (the
3063N/Adefault being "Hello World") which is displayed as a notice message
3063N/Awhen an OpenDS instance is started.
3063N/A
3063N/AIn order to build and use this example plugin, perform the following
3063N/Asteps (presumably you are already at step 4):
3063N/A
3063N/A 1. In the top-level source folder for OpenDS, first build and
3063N/A package OpenDS:
3063N/A
3063N/A ./build.sh
3063N/A
3063N/A 2. Next go into the packages folder:
3063N/A
3063N/A cd build/package/OpenDS-0.1
3063N/A
3063N/A 3. Then unzip the example-plugin.zip (in place):
3063N/A
3063N/A unzip example-plugin.zip
3063N/A
3063N/A 4. Go into the example-plugin source folder:
3063N/A
3063N/A cd example-plugin
3063N/A
3063N/A 5. And build the plugin (this requires Ant in your path):
3063N/A
3063N/A ant install
3063N/A
3063N/A 6. This will copy the following files into the parent OpenDS
3063N/A installation:
3063N/A
3063N/A lib/extensions/example-plugin.jar
3063N/A config/example-plugin.ldif
3063N/A config/schema/99-example-plugin.ldif
3063N/A
3063N/A 7. Add the plugin's config to the server configuration. The
3063N/A following instruction assumes usage of the Unix 'cat'
3063N/A command, but obviously ldapadd can be used:
3063N/A
3063N/A cd ../config
3063N/A cat example-plugin.ldif >> config.ldif
3063N/A
3063N/A 8. Start the server and look for the "hello world" notice in the start
3063N/A up log:
3063N/A
3063N/A cd ..
3063N/A ./bin/start-ds
3063N/A