class LdapConfigValidator {

    public void validateLdapConnection(LdapConfig ldapConfig) {
        if (ldapConfig != null) {
            validateLdapConnection(ldapConfig.getProtocol(),
                    ldapConfig.getServerHost(),
                    ldapConfig.getServerPort(),
                    ldapConfig.getBindDn(),
                    ldapConfig.getBindPassword());
        }
    }

}