Skip to content

msl-network plain¤

Edit usernames and passwords for PLAIN authentication.

The file structure is a JSON-object mapping between a username and a password.

{
    "username1": "password1",
    "username2": "password2"
}

Warning

The credentials are saved in plain text in the file that is created. You should set the file permissions provided by your operating system to ensure that your credentials are safe.

Usage¤

msl-network plain {add,remove,reset,list} [-u USERNAME] [-p PASSWORD] [-f FILE] [-h] [-q] [-v]

Arguments¤

add¤

Add a user.

msl-network plain add -u name -p password

remove¤

Remove a user.

msl-network plain remove -u name

reset¤

Reset to either no users or a single user.

Clears all users if a username and password is not specified.

msl-network plain reset

Otherwise, you can reset to only the specified username and password.

msl-network plain reset -u name -p password

list¤

List the authorised users.

msl-network plain list

Options¤

-u, --username USERNAME¤

The username to action.

-p, --password PASSWORD¤

The password.

-f, --file FILE¤

The JSON file to use. If not specified, use the default file.

The default directory to save the JSON file is in ~/.msl/network, which may also be set by an MSL_NETWORK_HOME environment variable.

-h, --help¤

Show the help message and exit.

-q, --quiet¤

Give less output. Option is additive and can be used up to 3 times.

For example,

  • -q — Silence INFO (and below) logging level
  • -qq — Silence WARNING (and below) logging level
  • -qqq — Silence ERROR (and below) logging level

-v, --verbose¤

Give more output (DEBUG logging level).