Package com.subhajit.embeddable.opends

Examples of com.subhajit.embeddable.opends.EmbeddedOpenDS


    final File installationDirectory = new File(IConstants.USER_HOME_DIR,
        "opends-" + UUID.randomUUID().toString());
    Throwable thrown = null;
    try {
      FileUtils.mkdirs(installationDirectory);
      EmbeddedOpenDS openDs = null;
      try {
        openDs = new EmbeddedOpenDS(installationDirectory, 1024);
        openDs.setup();
        openDs.configure();
        openDs.startup(5000);

        InitialLdapContext ctx = null;
        try {
          ctx = openDs.getInitialContext("cn=Directory Manager",
              "password");
        } finally {
          if (ctx != null) {
            ctx.close();
          }
        }
        openDs.shutdown(5000);
      } catch (Throwable exc) {
        thrown = exc;
      } finally {
        if (openDs != null) {
          openDs.uninstall();
        }
      }
    } finally {
      if (installationDirectory.exists()) {
        try {
View Full Code Here

TOP

Related Classes of com.subhajit.embeddable.opends.EmbeddedOpenDS

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.