This plugin uses a SQLite database to store hashed user credentials for authentication. Stored credentials are compatible with haraka-plugin-auth-enc-file. Currently only SHA512CRYPT is supported.
##Configuration
Configuration is stored in config/auth_sqlite.ini
and uses the INI style formatting.
Example:
db_file=auth.db
Simple tool for managing users in database is provided. SHA512-CRYPT hashes are generated automatically as needed. Syntax for the tool is:
node ./manage.js [command] <args>
For listing all users in database, use:
node ./manage.js list
To add a new user, use:
node ./manage.js add <username> <password>
There is no need to retype password. Also, password is stored in hashed form.
To change user password, use:
node ./manage.js mod <username> <password>
There is no need to retype new password or to type old password. Also, password is stored in hashed form.
To change the name of the user you have to delete the old user and create a new one.
To delete a user, use:
node ./manage.js del <username>