Trac Using Database Authentication

Can I use a database for authentication with Trac? .htpasswd auth is not required in this installation.

Using Trac.11 and MySQL as a database. Trac currently uses a database but does not provide authentication.

+5
source share
3 answers

Out of the box, Trac does not actually perform its own authentication ; it leaves it on the web server. So you have many options available for Apache. Perhaps you can look at something like auth_mysql so that you can store user credentials in a database.

Alternatively take a look at AccountManagerPlugin at trac-hacks.org

+5
source

You can use the Plugin for Account Manager with SessionStore

AccountManagerPlugin offers several functions for managing user accounts:

  • allow users to register new accounts
  • using an HTML form instead of using HTTP authentication
  • .
  • ,
+1

http://trac-hacks.org/wiki/AccountManagerPlugin

trac.ini [] ; acct_mgr.svnserve. * = acct_mgr.svnserve.svnservepasswordstore = enabled ; - acct_mgr.pwhash.htdigesthashmethod = enabled acct_mgr.pwhash.htpasswdhashmethod = enabled

[-] password_store = SvnServePasswordStore password_file =///svn/repos/conf/passwd ; - hash_method = HtDigestHashMethod hash_method = HtPasswdHashMethod

trac

0

All Articles