auth_rx_wiki/Migrating-to-Auth-Redux-Lit...

1.5 KiB

Auth Redux Lite is available for server operators that want a barebones, no-frills authentication handler for their server. The entire mod consists of a single 12.8 kB file (for comparison, I believe the sauth mod is about 11 kB).

Download Auth Redux Lite

This fork uses the same database API and architecture as Auth Redux, so migration is completely seamless. It is also fully compatible with DataMiner. If you are already using Auth Redux, simply backup your existing auth_rx subdirectory (as a tar.gz) and then save the above snippet as an "init.lua" file. The same license terms apply, of course.

However, if you are migrating from the builtin auth handler of Minetest 0.4, then there are a couple additional steps:

  1. Create an "auth_rx" subdirectory under mods.

  2. Download the Auth Redux Database Import Script snippet and save as "convert.awk"

  3. Download the Auth Redux Lite snippet and save as "init.lua".

  4. Run the command below to convert the database (with your correct world path).

    awk -f convert.awk -v mode=install ~/.minetest/worlds/world/auth.txt

I'd also recommend moving or simply renaming the auth.txt file in your world directory to "auth.txt.bak" for safekeeping. That's it!