Package com.unboundid.ldap.sdk

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


      conn.connect(ldapHost, ldapPort);

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


      conn.connect(ldapHost, ldapPort);

      if (ldapUrl.getScheme().equalsIgnoreCase("ldap+tls")) {
        SSLUtil sslUtil = new SSLUtil(new TrustAllTrustManager());
        ExtendedResult extendedResult = conn.processExtendedOperation(
            new StartTLSExtendedRequest(sslUtil.createSSLContext()));
        if (extendedResult.getResultCode() != ResultCode.SUCCESS) {
          throw new LDAPException(extendedResult.getResultCode());
        }
      }
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.