diff options
| author | 2019-02-07 13:51:08 +0000 | |
|---|---|---|
| committer | 2019-02-07 13:51:08 +0000 | |
| commit | 35ad1c7c7bb41c525fec7c4bdc315843fc6eee39 (patch) | |
| tree | bbf156f3fd6c458d7b307769b33cee60c29e46ee /modules | |
| parent | Add optional `default` param to `Exports.get_one()` (src/Exports.py) (diff) | |
| signature | ||
Add SASL README.md
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/sasl/README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/sasl/README.md b/modules/sasl/README.md new file mode 100644 index 00000000..668ef46d --- /dev/null +++ b/modules/sasl/README.md @@ -0,0 +1,35 @@ +# 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 +> !serverset sasl plain <username>:<password> + +#### SCRAM-SHA-1 +> !serverset sasl scram-sha-1 <username>:<password> + +#### SCRAM-SHA-256 +> !serverset sasl scram-sha-256 <username>:<password> + +#### EXTERNAL +> !serverset sasl external + +## sqlite + +Execute these against the current bot database file (e.g. `$ sqlite3 databases/bot.db`) + +#### PLAIN +> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "plain", "args": "<username>:<password>"}'); + +#### SCRAM-SHA-1 +> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "scram-sha-1", "args": "<username>:<password>"}'); + +#### SCRAM-SHA-256 +> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "scram-sha-256", "args": "<username>:<password>"}'); + +#### external +> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "external"}'); |
