mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-728: Change default JDBC SSL mode to prefer(red).
This commit is contained in:
@@ -106,7 +106,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
|
|||||||
/**
|
/**
|
||||||
* The default SSL mode for connecting to MySQL servers.
|
* The default SSL mode for connecting to MySQL servers.
|
||||||
*/
|
*/
|
||||||
private final MySQLSSLMode DEFAULT_SSL_MODE = MySQLSSLMode.DISABLED;
|
private final MySQLSSLMode DEFAULT_SSL_MODE = MySQLSSLMode.PREFERRED;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new MySQLEnvironment, providing access to MySQL-specific
|
* Constructs a new MySQLEnvironment, providing access to MySQL-specific
|
||||||
@@ -309,7 +309,7 @@ public class MySQLEnvironment extends JDBCEnvironment {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the MySQL SSL mode as configured in guacamole.properties, or the
|
* Return the MySQL SSL mode as configured in guacamole.properties, or the
|
||||||
* default value of DISABLED if not configured.
|
* default value of PREFERRED if not configured.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* The SSL mode to use when connecting to the MySQL server.
|
* The SSL mode to use when connecting to the MySQL server.
|
||||||
|
@@ -180,8 +180,8 @@ public class MySQLGuacamoleProperties {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The SSL mode used to connect to the MySQL Server. By default SSL will
|
* The SSL mode used to connect to the MySQL Server. By default the driver
|
||||||
* not be used.
|
* will attempt SSL connections and fall back to plain-text if SSL fails.
|
||||||
*/
|
*/
|
||||||
public static final EnumGuacamoleProperty<MySQLSSLMode> MYSQL_SSL_MODE =
|
public static final EnumGuacamoleProperty<MySQLSSLMode> MYSQL_SSL_MODE =
|
||||||
new EnumGuacamoleProperty<MySQLSSLMode>(MySQLSSLMode.class) {
|
new EnumGuacamoleProperty<MySQLSSLMode>(MySQLSSLMode.class) {
|
||||||
|
@@ -101,7 +101,7 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
|
|||||||
/**
|
/**
|
||||||
* The default value to use for SSL mode if none is explicitly configured.
|
* The default value to use for SSL mode if none is explicitly configured.
|
||||||
*/
|
*/
|
||||||
private final PostgreSQLSSLMode DEFAULT_SSL_MODE = PostgreSQLSSLMode.DISABLE;
|
private final PostgreSQLSSLMode DEFAULT_SSL_MODE = PostgreSQLSSLMode.PREFER;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs a new PostgreSQLEnvironment, providing access to PostgreSQL-specific
|
* Constructs a new PostgreSQLEnvironment, providing access to PostgreSQL-specific
|
||||||
@@ -257,7 +257,8 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the SSL mode to use to make the JDBC connection to the PostgreSQL
|
* Get the SSL mode to use to make the JDBC connection to the PostgreSQL
|
||||||
* server. If unspecified this will default to disabling SSL.
|
* server. If unspecified this will default to PREFER, attempting SSL
|
||||||
|
* and falling back to plain-text if SSL fails.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* The enum value of the SSL mode to use to make the JDBC connection
|
* The enum value of the SSL mode to use to make the JDBC connection
|
||||||
|
@@ -175,7 +175,8 @@ public class PostgreSQLGuacamoleProperties {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The SSL mode that should be used by the JDBC driver when making
|
* The SSL mode that should be used by the JDBC driver when making
|
||||||
* connections to the remote server. By default SSL will be disabled.
|
* connections to the remote server. By default SSL will be attempted but
|
||||||
|
* plain-text will be allowed if SSL fails.
|
||||||
*/
|
*/
|
||||||
public static final EnumGuacamoleProperty<PostgreSQLSSLMode> POSTGRESQL_SSL_MODE =
|
public static final EnumGuacamoleProperty<PostgreSQLSSLMode> POSTGRESQL_SSL_MODE =
|
||||||
new EnumGuacamoleProperty<PostgreSQLSSLMode>(PostgreSQLSSLMode.class) {
|
new EnumGuacamoleProperty<PostgreSQLSSLMode>(PostgreSQLSSLMode.class) {
|
||||||
|
Reference in New Issue
Block a user