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:
parent
94c61b071a
commit
58d302b6f7
3 changed files with 2 additions and 3 deletions
|
@ -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: <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
|
||||
|
|
|
@ -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: <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
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue