GUACAMOLE-1723: Enforce access time restrictions for logged in users.

This commit is contained in:
James Muehlner
2022-12-01 00:22:02 +00:00
parent 7c502fdd0e
commit 18d971a837
20 changed files with 497 additions and 14 deletions

View File

@@ -268,4 +268,13 @@ public class SQLServerEnvironment extends JDBCEnvironment {
true);
}
@Override
public boolean enforceAccessWindowsForActiveSessions() throws GuacamoleException {
// Enforce access window restrictions for active sessions unless explicitly disabled
return getProperty(
SQLServerGuacamoleProperties.SQLSERVER_ENFORCE_ACCESS_WINDOWS_FOR_ACTIVE_SESSIONS,
true);
}
}

View File

@@ -220,4 +220,17 @@ public class SQLServerGuacamoleProperties {
};
/**
* Whether or not user-specific access time windows should be enforced for active sessions,
* i.e. whether users with active sessions should be logged out immediately when an access
* window closes or the user is disabled.
*/
public static final BooleanGuacamoleProperty SQLSERVER_ENFORCE_ACCESS_WINDOWS_FOR_ACTIVE_SESSIONS =
new BooleanGuacamoleProperty() {
@Override
public String getName() { return "sqlserver-enforce-access-windows-for-active-sessions"; }
};
}