2019-02-07 13:51:08 +00:00
|
|
|
# Configuring SASL
|
|
|
|
|
|
|
|
You can either configure SASL through `!serverset sasl` from an registered and identified admin account or directly through sqlite.
|
|
|
|
|
|
|
|
## !serverset sasl
|
|
|
|
|
|
|
|
These commands are to be executed from a registered admin account
|
|
|
|
|
|
|
|
#### PLAIN
|
2019-02-07 13:53:46 +00:00
|
|
|
> !serverset sasl plain <username>:<password>
|
2019-02-07 13:51:08 +00:00
|
|
|
|
|
|
|
#### SCRAM-SHA-1
|
2019-02-07 13:53:46 +00:00
|
|
|
> !serverset sasl scram-sha-1 <username>:<password>
|
2019-02-07 13:51:08 +00:00
|
|
|
|
|
|
|
#### SCRAM-SHA-256
|
2019-02-07 13:53:46 +00:00
|
|
|
> !serverset sasl scram-sha-256 <username>:<password>
|
2019-02-07 13:51:08 +00:00
|
|
|
|
|
|
|
#### EXTERNAL
|
|
|
|
> !serverset sasl external
|
|
|
|
|
|
|
|
## sqlite
|
|
|
|
|
|
|
|
Execute these against the current bot database file (e.g. `$ sqlite3 databases/bot.db`)
|
|
|
|
|
|
|
|
#### PLAIN
|
2019-02-07 13:53:46 +00:00
|
|
|
> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "plain", "args": "<username>:<password>"}');
|
2019-02-07 13:51:08 +00:00
|
|
|
|
|
|
|
#### SCRAM-SHA-1
|
2019-02-07 13:53:46 +00:00
|
|
|
> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "scram-sha-1", "args": "<username>:<password>"}');
|
2019-02-07 13:51:08 +00:00
|
|
|
|
|
|
|
#### SCRAM-SHA-256
|
2019-02-07 13:53:46 +00:00
|
|
|
> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "scram-sha-256", "args": "<username>:<password>"}');
|
2019-02-07 13:51:08 +00:00
|
|
|
|
|
|
|
#### external
|
2019-02-07 13:53:46 +00:00
|
|
|
> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "external"}');
|