Created Additional Callback Support (markdown)

master
sorcerykid 2018-09-03 22:55:45 -05:00
parent 3c718de564
commit e336bda5df
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
To get the most benefit from Auth Redux, it is strongly recommend that you compile your server with support for the new on_auth_fail callback. This callback was introduced in Minetest 5.0. If you are running an earlier version, then the source code will need to be modified.
Most of the applicable changes are documented in [PR #7073](https://github.com/minetest/minetest/pull/7039/files). However, since Minetest 0.4.x also includes a legacy authentication mechanism, additional changes are required. To automate this process, I've provided patch files for all stable versions 0.4.14 and later.
[Patch for 'on_auth_fail' callback (Minetest 0.4.x)](https://bitbucket.org/snippets/sorcerykid/Ee9nbx)
Simply download the appropriate patch into a temporary location, and issue the following git command within your local repository. Then rebuild the minetestserver as usual.
git apply <patch-file-path>
To test whether the new callback is working, add the ruleset below to the greenlist.mt file. Now, login to your server with an incorrect password. Then reconnect, and you should get the error message, "ip_attempts=1, ip_failures=1".
try "ip_attempts=$ip_attempts, ip_failures=$ip_failures"
when $ip_failures gt 0 fail
pass now
If it doesn't work, then double-check that the minetestserver executable was installed into the correct location; i.e. /usr/local/bin.