mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-990: Add Docker image support for guacamole-auth-ban.
This commit is contained in:
@@ -1160,6 +1160,18 @@ if [ -n "$API_SESSION_TIMEOUT" ]; then
|
||||
associate_apisessiontimeout
|
||||
fi
|
||||
|
||||
# Apply any overrides for default address ban behavior
|
||||
set_optional_property "ban-address-duration" "$BAN_ADDRESS_DURATION"
|
||||
set_optional_property "ban-max-addresses" "$BAN_MAX_ADDRESSES"
|
||||
set_optional_property "ban-max-invalid-attempts" "$BAN_MAX_INVALID_ATTEMPTS"
|
||||
|
||||
# Ensure guacamole-auth-ban always loads before other extensions unless
|
||||
# explicitly overridden via naming or EXTENSION_PRIORITY (allowing other
|
||||
# extensions to attempt authentication before guacamole-auth-ban has a chance
|
||||
# to enforce any bans could allow credentials to continue to be guessed even
|
||||
# after the address has been blocked via timing attacks)
|
||||
ln -s /opt/guacamole/ban/guacamole-auth-*.jar "$GUACAMOLE_EXT/_guacamole-auth-ban.jar"
|
||||
|
||||
# Set logback level if specified
|
||||
if [ -n "$LOGBACK_LEVEL" ]; then
|
||||
unzip -o -j /opt/guacamole/guacamole.war WEB-INF/classes/logback.xml -d $GUACAMOLE_HOME
|
||||
|
Reference in New Issue
Block a user