mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-990: Add Docker image support for guacamole-auth-ban.
This commit is contained in:
@@ -198,3 +198,13 @@ if [ -f extensions/guacamole-auth-json/target/guacamole-auth-json*.jar ]; then
|
|||||||
mkdir -p "$DESTINATION/json"
|
mkdir -p "$DESTINATION/json"
|
||||||
cp extensions/guacamole-auth-json/target/guacamole-auth-json*.jar "$DESTINATION/json"
|
cp extensions/guacamole-auth-json/target/guacamole-auth-json*.jar "$DESTINATION/json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copy automatic brute-force banning auth extension if it was built
|
||||||
|
#
|
||||||
|
|
||||||
|
if [ -f extensions/guacamole-auth-ban/target/guacamole-auth-ban*.jar ]; then
|
||||||
|
mkdir -p "$DESTINATION/ban"
|
||||||
|
cp extensions/guacamole-auth-ban/target/guacamole-auth-ban*.jar "$DESTINATION/ban"
|
||||||
|
fi
|
||||||
|
|
||||||
|
@@ -1160,6 +1160,18 @@ if [ -n "$API_SESSION_TIMEOUT" ]; then
|
|||||||
associate_apisessiontimeout
|
associate_apisessiontimeout
|
||||||
fi
|
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
|
# Set logback level if specified
|
||||||
if [ -n "$LOGBACK_LEVEL" ]; then
|
if [ -n "$LOGBACK_LEVEL" ]; then
|
||||||
unzip -o -j /opt/guacamole/guacamole.war WEB-INF/classes/logback.xml -d $GUACAMOLE_HOME
|
unzip -o -j /opt/guacamole/guacamole.war WEB-INF/classes/logback.xml -d $GUACAMOLE_HOME
|
||||||
|
Reference in New Issue
Block a user