Neil Wilson's cheat sheet to integrate OpenDS as a testing ldap engine in your java apps.
==========
- Make sure that all of the OpenDS JAR files are in your application's
classpath.
- When you're ready to start the server, you can do so as follows:
String configClass = "org.opends.server.extensions.ConfigFileHandler";
String configFile = "config/config.ldif";
DirectoryServer directoryServer = DirectoryServer.getInstance();
directoryServer.bootstrapServer();
directoryServer.initializeConfiguration(configClass, configFile);
directoryServer.startServer();
This will start the server inside the same JVM, and you should be able
to communicate with it using LDAP or using the internal operations API
that we have defined for plugins (via the classes in the
org.opends.server.protocols.internal package).
===============================
No comments:
Post a Comment