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

@@ -328,4 +328,10 @@ public class PostgreSQLEnvironment extends JDBCEnvironment {
return getProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_SSL_KEY_PASSWORD);
}
@Override
public boolean autoCreateAbsentAccounts() throws GuacamoleException {
return getProperty(PostgreSQLGuacamoleProperties.POSTGRESQL_AUTO_CREATE_ACCOUNTS,
false);
}
}

View File

@@ -233,4 +233,16 @@ public class PostgreSQLGuacamoleProperties {
};
/**
* Whether or not the PostgreSQL extension should automatically add database
* entries for users who are granted access through other extensions.
*/
public static final BooleanGuacamoleProperty POSTGRESQL_AUTO_CREATE_ACCOUNTS =
new BooleanGuacamoleProperty() {
@Override
public String getName() { return "postgresql-auto-create-accounts"; }
};
}