add xmlrpc auth error support
-
Could you please add the following to the mainline code?
--- wp-fail2ban.php.orig 2015-10-24 10:32:58.668868763 +0100 +++ wp-fail2ban.php 2015-10-24 10:33:55.863788553 +0100 @@ -108,6 +108,12 @@ openlog(); \syslog(LOG_NOTICE,"Authentication failure for $username from ".remote_addr()); }); +add_filter( 'xmlrpc_login_error', + function($error,$user) + { + openlog(); + \syslog(LOG_NOTICE,"Authentication failure from ".remote_addr() ." for xmlrpc auth: " . $error ); + },10,2); if (defined('WP_FAIL2BAN_LOG_PINGBACKS') && true === WP_FAIL2BAN_LOG_PINGBACKS) { add_action( 'xmlrpc_call', function($call)
Also here, for readability: https://wpbin.io/gj4hcg
- The topic ‘add xmlrpc auth error support’ is closed to new replies.