*/
private static LDAPConnection getNewConnection(String serverAddress, int port, boolean useSSL, String connectionDN, String connectionPassword) {
LDAPConnection lc = null;
int ldapPort = port;
if (useSSL) {
lc = new LDAPConnection(new LDAPJSSESecureSocketFactory());
if (ldapPort == 0) {
ldapPort = LDAPConnection.DEFAULT_SSL_PORT; // Port 636
}
} else {
lc = new LDAPConnection();