if (options == null) {
options = new LDAPConnectionOptions();
}
if (this.useSSL) {
options.setUseSSL(true);
SSLConnectionFactory sslConnectionFactory = new SSLConnectionFactory();
sslConnectionFactory.init(getTrustManager() == null, keystorePath,
keystorePassword, certifNickname,
truststorePath, truststorePassword);
options.setSSLConnectionFactory(sslConnectionFactory);
} else {
options.setUseSSL(false);