Package com.unboundid.ldap.sdk

Examples of com.unboundid.ldap.sdk.LDAPConnection.connect()


      } else {
        logger.error("Unsupported LDAP URL scheme: " + ldapUrl.getScheme());
        return null;
      }

      conn.connect(ldapHost, ldapPort);

      if (ldapUrl.getScheme().equalsIgnoreCase("ldap+tls")) {
        SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager());
        ExtendedResult extendedResult = conn.processExtendedOperation(
            new StartTLSExtendedRequest(sslUtil.createSSLContext()));
View Full Code Here


      } else {
        logger.error("Unsupported LDAP URL scheme: " + ldapUrl.getScheme());
        return null;
      }

      conn.connect(ldapHost, ldapPort);

      if (ldapUrl.getScheme().equalsIgnoreCase("ldap+tls")) {
        SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager());
        ExtendedResult extendedResult = conn.processExtendedOperation(
            new StartTLSExtendedRequest(sslUtil.createSSLContext()));
View Full Code Here

        int i = 0;
        while (i < connectionRetries) {
            long start = System.currentTimeMillis();
            try {
                this.getLog().info("Attempting to connect ot LDAP directory server (" + host + ":" + port + ")");
                connection.connect(host, port, connectionTimeout);
                break;
            } catch (final LDAPException e) {
                final String message = "Could not connect to LDAP directory server (" + host + ":" + port + ")";
                this.getLog().error(message, e);
                if (i++ < connectionRetries) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.