From 58d302b6f7936390cbd592bff418cf5d74e6dc5e Mon Sep 17 00:00:00 2001 From: Tom Warnke Date: Tue, 26 Dec 2023 12:52:39 +0100 Subject: [PATCH] fix regex --- scripts/install | 2 +- scripts/upgrade | 2 +- .../main/Core/Frameworks/Baikal/Core/LDAPUserBindAuth.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index ef05d65..e3fae71 100644 --- a/scripts/install +++ b/scripts/install @@ -68,7 +68,7 @@ ynh_script_progression --message="Configuring fail2ban..." --weight=1 touch "/var/log/${domain}-error.log" # 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: ' +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: ' #================================================= # SPECIFIC SETUP diff --git a/scripts/upgrade b/scripts/upgrade index faad769..059d665 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,7 +51,7 @@ ynh_script_progression --message="Upgrading fail2ban configuration..." --weight= touch "/var/log/${domain}-error.log" # 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: ' +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: ' #================================================= # SPECIFIC UPGRADE diff --git a/sources/extra_files/main/Core/Frameworks/Baikal/Core/LDAPUserBindAuth.php b/sources/extra_files/main/Core/Frameworks/Baikal/Core/LDAPUserBindAuth.php index b82c02e..d558a78 100644 --- a/sources/extra_files/main/Core/Frameworks/Baikal/Core/LDAPUserBindAuth.php +++ b/sources/extra_files/main/Core/Frameworks/Baikal/Core/LDAPUserBindAuth.php @@ -75,6 +75,5 @@ class LDAPUserBindAuth extends AbstractExternalAuth { # WorkAround error_handler in failed bind of LDAP public static function exception_error_handler($errno, $errstr, $errfile, $errline) { - error_log('LDAP Authentication failure'); } }