*
* @return a LDAP or LDAPS URL bases on the {@link Method}
*/
private String makeLdapUrl() {
String url;
Method connectMethod = settings.getConnectMethod();
if (connectMethod == Method.SSL) {
url = "ldaps://"; // For SSL
} else {
url = "ldap://"; // for NON-SSL
}