Is it possible to use a database for authentication with Trac? .htpasswd auth is not desired in this install.
Using Trac .11 and MySQL as the database. Trac is currently using the database, but provides no authentication.
Is it possible to use a database for authentication with Trac? .htpasswd auth is not desired in this install.
Using Trac .11 and MySQL as the database. Trac is currently using the database, but provides no authentication.
Out of the box, Trac doesn't actually do its own authentication, it leaves it up to the web server. So, you've got a wealth of Apache-related options available to you. You could maybe look at something like auth_mysql to let you keep user credentials in a database.
Alternatively, take a look at the AccountManagerPlugin on trac-hacks.org
You can use Account Manager Plugin with SessionStore
The AccountManagerPlugin offers several features for managing user accounts:
Please refer to http://trac-hacks.org/wiki/AccountManagerPlugin
Do the following on your trac.ini [components] ; be sure to enable the component acct_mgr.svnserve.* = enabled acct_mgr.svnserve.svnservepasswordstore = enabled ; choose one of the hash methods acct_mgr.pwhash.htdigesthashmethod = enabled acct_mgr.pwhash.htpasswdhashmethod = enabled
[account-manager] password_store = SvnServePasswordStore password_file = /path/to/svn/repos/conf/passwd ; choose one of the hash methods hash_method = HtDigestHashMethod hash_method = HtPasswdHashMethod
Now trac will use user in the database