Different methods

Authentification on a LotAtc client is made by several methods :

  • Basic (one password by coalition)
  • With specific login/password
  • With IPs

Basic

Is is the default method. Each coalition has its own password:

  • blue for blue coalition
  • red for red coalition

You can change that in config.lua file

Specific login/password

You can restrict OR add specific login/password to the basic logins.

To do so, edit the config.lua file (or config.custom.lua with 2.x) and set the following field or use LotAtc Configurator:

  allowed_users_file = "my_user_file.json",

The file “my_user_file.json” will contains the following:

{
    "users" : {
        -- If true, Basic authentification with blue/red password will no more work,
        -- only following users will be able to connect
        "exclusive" : false, 

        -- For each coalition...
        "blue" : [
            { 
                -- The user DArt with password lotatc will be able to connect on blue coalition
                "login": "DArt",
                "password": "lotatc", 

                -- The next line is optional, if true, user can used the server commands (see the documentation)
                "admin": true,
                -- The next line is optional, if true, user can see all units even not detected units (see the documentation)
                "allow_god_view": true
            }
        ],
        -- Here no user could connect on red coalitions
        "red" : []
    },

    -- Next will be explained in next section
    "blacklist" : [
        "111.222.333.444",
        "111.222.333.445"
    ],
    "whitelist" : [ ]
}

All lines starting by -- must be deleted in previous example, they are not supported by JSON format and are put here for contextual help.

Blacklist/whitelist IPs

In previous section, we see that we can add a file to describe who is authorized to connect with LotAtc client on our server.

We can add the following lines in same files to add black/white list IPs :

{
    ....

    -- All IPv4 or IPv6 list here will be rejected even if has correct login/password
    "blacklist" : [
        "111.222.333.444",
        "111.222.333.445"
    ],
    -- All IPv4 or IPv6 list here will be accepted
    "whitelist" : [ ]
}

All lines starting by -- must be deleted in previous example, they are not supported by JSON format and are put here for contextual help.

Updated: