1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00

fix regex

This commit is contained in:
Tom Warnke 2023-12-26 12:52:39 +01:00
parent 94c61b071a
commit 58d302b6f7
No known key found for this signature in database
GPG key ID: 23BEBC549919C003
3 changed files with 2 additions and 3 deletions

View file

@ -68,7 +68,7 @@ ynh_script_progression --message="Configuring fail2ban..." --weight=1
touch "/var/log/${domain}-error.log" touch "/var/log/${domain}-error.log"
# Create a dedicated fail2ban config # Create a dedicated fail2ban config
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex='"PHP message: LDAP Authentication failure" while reading response header from upstream, client: <HOST>' ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex='"PHP message: user \(name stripped-out\) authentication failure for Baikal" while reading response header from upstream, client: <HOST>'
#================================================= #=================================================
# SPECIFIC SETUP # SPECIFIC SETUP

View file

@ -51,7 +51,7 @@ ynh_script_progression --message="Upgrading fail2ban configuration..." --weight=
touch "/var/log/${domain}-error.log" touch "/var/log/${domain}-error.log"
# Create a dedicated fail2ban config # Create a dedicated fail2ban config
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex='"PHP message: LDAP Authentication failure" while reading response header from upstream, client: <HOST>' ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex='"PHP message: user \(name stripped-out\) authentication failure for Baikal" while reading response header from upstream, client: <HOST>'
#================================================= #=================================================
# SPECIFIC UPGRADE # SPECIFIC UPGRADE

View file

@ -75,6 +75,5 @@ class LDAPUserBindAuth extends AbstractExternalAuth {
# WorkAround error_handler in failed bind of LDAP # WorkAround error_handler in failed bind of LDAP
public static function exception_error_handler($errno, $errstr, $errfile, $errline) { public static function exception_error_handler($errno, $errstr, $errfile, $errline) {
error_log('LDAP Authentication failure');
} }
} }