wiki:SQLAuthStorePlugin

SQL auth store

Description

This plugin defines a SQL auth store backend for AccountManagerPlugin.

Under account-manager section of your trac.ini file you can configure the following:

  • hash_method: hash method used for storing/reading passwords from the database, like HtPasswdHashMethod or HtDigestHashMethod.
  • sql_auth_table: name of the table in the database.
  • sql_read_only: should the plugin also allow updating the table through Trac, true or false.

As a database connection the Trac database connection is used. So the idea is that in the Trac database you create a table for users or you can use something like PostgreSQL schema search path to combine multiple schemas.

Table schema is simple:

  • username
  • password
  • admin: if true, user will be both in admins and users permission groups, otherwise just users.

See also: SqlFlexibleAuthStorePlugin

Bugs/Feature Requests

Please use GitHub for any issues you have with SQLAuthStorePlugin.

Download

Download the zipped source from here.

Source

You can clone SQLAuthStorePlugin from here using git, or browse the source on GitHub.

Installation

General instructions on installing Trac plugins can be found on the TracPlugins page.

Author/Contributors

Author: mitar
Maintainer: mitar
Contributors:

Last modified 7 years ago Last modified on Jan 16, 2018, 7:19:31 AM