5

是否可以使用数据库进行 Trac 身份验证?此安装不需要 .htpasswd 身份验证。

使用 Trac .11 和 MySQL 作为数据库。Trac 当前正在使用数据库,但不提供身份验证。

4

3 回答 3

5

开箱即用,Trac 实际上并不进行自己的身份验证,而是将其留给 Web 服务器。因此,您可以使用大量与 Apache 相关的选项。您也许可以查看auth_mysql 之类的东西,让您将用户凭据保存在数据库中。

或者,查看trac-hacks.org上的AccountManagerPlugin

于 2009-06-11T17:03:07.163 回答
1

您可以将Account Manager 插件与 SessionStore 一起使用

AccountManagerPlugin 提供了一些用于管理用户帐户的功能:

  • 允许用户注册新帐户
  • 通过 HTML 表单而不是使用 HTTP 身份验证登录
  • 允许现有用户更改密码或删除其帐户
  • 向忘记密码的用户发送新密码
  • 用户帐户管理
于 2009-06-11T17:08:50.347 回答
0

请参考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 将在数据库中使用用户

于 2010-08-31T14:10:04.220 回答