Conversation
supportHi, we have a problem with Wordfence brute force protection not blocking failed logins when wpDirAuth is used. The combination worked on one site, on the other it started to work when I changed ‘Enable SSL Connectivity’ to ‘Use TLS’ in wpDirAuth settings. On the third site (most vital site) that did not fix the problem. The problem is exactly the same as here . Could you come up with a quick fix for the problem, otherwise we may be forced to change the this otherwise good ldap plugin to an other one. -VeM-
One setting can fix the problem (though we cannot use it in our production), I changed the setting ‘Automatically Register Authenticated Users’ from Yes to No. -VeM-
Unfortunately, this is a known issue with WordFence . I’ve tried to get them to correct their hook to authenticate but they have yet to update their code.
Try this, at line 544 , and line 1455 in wpDirAuth.php, change could_not_authenticate (544) and failed_login (1455) to authentication_failed and see if WordFence starts behaving properly.
No luck.
I seem to have found a solution, I added an authentication filter at line 1403: if($boolRestoreBlog) restore_current_blog(); add_filter(‘authenticate’,’wp_authenticate_username_password’,20,3); return $userData; At least now everything seems to work ok also when ‘Automatically Register Authenticated Users?’ is set to Yes. I hope there are no security flaws I have made by doing this? 8) …
One setting can fix the problem (though we cannot use it in our production), I changed the setting ‘Automatically Register Authenticated Users’ from Yes to No. -VeM-
Unfortunately, this is a known issue with WordFence . I’ve tried to get them to correct their hook to authenticate but they have yet to update their code.
Try this, at line 544 , and line 1455 in wpDirAuth.php, change could_not_authenticate (544) and failed_login (1455) to authentication_failed and see if WordFence starts behaving properly.
No luck.
I seem to have found a solution, I added an authentication filter at line 1403: if($boolRestoreBlog) restore_current_blog(); add_filter(‘authenticate’,’wp_authenticate_username_password’,20,3); return $userData; At least now everything seems to work ok also when ‘Automatically Register Authenticated Users?’ is set to Yes. I hope there are no security flaws I have made by doing this? 8) …