是否可以使用数据库进行 Trac 身份验证?此安装不需要 .htpasswd 身份验证。
使用 Trac .11 和 MySQL 作为数据库。Trac 当前正在使用数据库,但不提供身份验证。
开箱即用,Trac 实际上并不进行自己的身份验证,而是将其留给 Web 服务器。因此,您可以使用大量与 Apache 相关的选项。您也许可以查看auth_mysql 之类的东西,让您将用户凭据保存在数据库中。
或者,查看trac-hacks.org上的AccountManagerPlugin
您可以将Account Manager 插件与 SessionStore 一起使用
AccountManagerPlugin 提供了一些用于管理用户帐户的功能:
请参考http://trac-hacks.org/wiki/AccountManagerPlugin
在您的 trac.ini [components] 上执行以下操作;确保启用组件 acct_mgr.svnserve.* = enabled acct_mgr.svnserve.svnservepasswordstore = enabled ; 选择一种哈希方法 acct_mgr.pwhash.htdigesthashmethod = enabled acct_mgr.pwhash.htpasswdhashmethod = enabled
[帐户管理员] password_store = SvnServePasswordStore password_file = /path/to/svn/repos/conf/passwd ; 选择一种哈希方法 hash_method = HtDigestHashMethod hash_method = HtPasswdHashMethod
现在 trac 将在数据库中使用用户