| | |
| | | |
| | | if (options.isUseSSL()) |
| | | { |
| | | // Obtain the configured trust manager which will be used in order |
| | | // to determine the trust of the remote LDAP server. |
| | | // Obtain the optional configured trust manager which will be used |
| | | // in order to determine the trust of the remote LDAP server. |
| | | TrustManager[] tm = null; |
| | | DN trustManagerDN = options.getTrustManagerProviderDN(); |
| | | if (trustManagerDN != null) |
| | | { |
| | | TrustManagerProvider<?> trustManagerProvider = DirectoryServer |
| | | .getTrustManagerProvider(trustManagerDN); |
| | | TrustManager[] tm = null; |
| | | if (trustManagerProvider != null) |
| | | { |
| | | tm = trustManagerProvider.getTrustManagers(); |
| | | } |
| | | } |
| | | |
| | | // Create the SSL context and initialize it. |
| | | SSLContext sslContext = SSLContext.getInstance("TLS"); |