Put information about USERPASS
in sasl/README.md
This commit is contained in:
parent
d0ad43b027
commit
ec3096fb50
1 changed files with 11 additions and 0 deletions
|
@ -2,10 +2,18 @@
|
||||||
|
|
||||||
You can either configure SASL through `!serverset sasl` from an registered and identified admin account or directly through sqlite.
|
You can either configure SASL through `!serverset sasl` from an registered and identified admin account or directly through sqlite.
|
||||||
|
|
||||||
|
## USERPASS Mechanism
|
||||||
|
|
||||||
|
BitBot supports a special SASL mechanism name: `USERPASS`. This internally
|
||||||
|
represents "pick the strongest username:password algorithm"
|
||||||
|
|
||||||
## !serverset sasl
|
## !serverset sasl
|
||||||
|
|
||||||
These commands are to be executed from a registered admin account
|
These commands are to be executed from a registered admin account
|
||||||
|
|
||||||
|
#### USERPASS
|
||||||
|
> !serverset sasl userpass <username>:<password>
|
||||||
|
|
||||||
#### PLAIN
|
#### PLAIN
|
||||||
> !serverset sasl plain <username>:<password>
|
> !serverset sasl plain <username>:<password>
|
||||||
|
|
||||||
|
@ -22,6 +30,9 @@ These commands are to be executed from a registered admin account
|
||||||
|
|
||||||
Execute these against the current bot database file (e.g. `$ sqlite3 databases/bot.db`)
|
Execute these against the current bot database file (e.g. `$ sqlite3 databases/bot.db`)
|
||||||
|
|
||||||
|
#### USERPASS
|
||||||
|
> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "userpass", "args": "<username>:<password>"}');
|
||||||
|
|
||||||
#### PLAIN
|
#### PLAIN
|
||||||
> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "plain", "args": "<username>:<password>"}');
|
> INSERT INTO server_settings (<serverid>, 'sasl', '{"mechanism": "plain", "args": "<username>:<password>"}');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue