GUACAMOLE-708: Add properties for automatic account creation.

This commit is contained in:
Virtually Nick
2020-06-19 12:22:26 -04:00
parent 6d89c1a308
commit 0ad00dda3e
11 changed files with 70 additions and 5 deletions

View File

@@ -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);
}
}

View File

@@ -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"; }
};
}