GUACAMOLE-708: Add properties for automatic account creation.
This commit is contained in:
1 parent
6d89c1a308
commit
0ad00dda3e
11 files changed
+70
-5
No files matched your search
+6
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
+8
@@ -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"; }
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user