GUACAMOLE-708: Add properties for automatic account creation.

This commit is contained in:
Virtually Nick committed 2020-06-19 12:22:26 -04:00
1 parent 6d89c1a308
commit 0ad00dda3e
11 files changed
+70 -5

No files matched your search

@@ -386,5 +386,11 @@ public class MySQLEnvironment extends JDBCEnvironment {
public String getMYSQLSSLClientPassword() throws GuacamoleException {
return getProperty(MySQLGuacamoleProperties.MYSQL_SSL_TRUST_PASSWORD);
}
@Override
public boolean autoCreateAbsentAccounts() throws GuacamoleException {
return getProperty(MySQLGuacamoleProperties.MYSQL_AUTO_CREATE_ACCOUNTS,
false);
}
}
@@ -240,5 +240,13 @@ public class MySQLGuacamoleProperties {
public String getName() { return "mysql-ssl-client-password"; }
};
public static final BooleanGuacamoleProperty MYSQL_AUTO_CREATE_ACCOUNTS =
new BooleanGuacamoleProperty() {
@Override
public String getName() { return "mysql-auto-create-accounts"; }
};
}