public static void probeConnectionLDAP(String hostname, int port, int timeout) throws LDAPException {
try {
probeConnectionRaw(hostname, port, timeout);
} catch (IOException e) {
String msg = "Unable to connect to " + hostname + ":" + port + ".";
throw new LDAPException(msg ,LDAPException.CONNECT_ERROR, msg);
}
}