mod_auth_sqlite
Authenticate users from a SQLite database. Part of the bundled plug-ins.
mod_auth_sqlite stores registered accounts in a SQLite database. It scales past a
hand-edited text file and can optionally let users register and change their own passwords.
The uhub-passwd tool creates and manages the database.
Loading
plugin /var/lib/uhub/mod_auth_sqlite.so "file=/etc/uhub/users.db"
Configuration
| Option | Default | Description |
|---|---|---|
file | — | Path to the SQLite database (required). |
exclusive | no | When enabled, only accounts in this database may log in — any other nick is denied rather than passed to the hub's own ACL. |
self_register | no | Enables the !regme and !passwd self-service commands below. |
Commands
Registered only when self_register is enabled:
| Command | Access | Description |
|---|---|---|
!regme <password> | guest | Register your current nick with the given password. |
!passwd <password> | registered | Change the password of your registered nick. |
Passwords must be 1–64 characters and contain no spaces.
self_register lets anyone claim a nick — enable it only where that is
acceptable, and consider pairing it with a registered-users-only or moderated policy.
For a simple file-based store without a database, see mod_auth_simple.