【发布时间】:2010-11-02 04:56:00
【问题描述】:
Trac 是否可以使用数据库进行身份验证? 此安装不需要 .htpasswd 身份验证。
使用 Trac .11 和 MySQL 作为数据库。 Trac 当前正在使用数据库,但不提供身份验证。
【问题讨论】:
Trac 是否可以使用数据库进行身份验证? 此安装不需要 .htpasswd 身份验证。
使用 Trac .11 和 MySQL 作为数据库。 Trac 当前正在使用数据库,但不提供身份验证。
【问题讨论】:
开箱即用,Trac doesn't actually do its own authentication,它将它留给网络服务器。因此,您可以使用大量与 Apache 相关的选项。您可以查看 auth_mysql 之类的内容,以便将用户凭据保存在数据库中。
或者,查看 trac-hacks.org 上的 AccountManagerPlugin
【讨论】:
您可以使用Account Manager Plugin with SessionStore
AccountManagerPlugin 提供了多种管理用户帐户的功能:
【讨论】:
请参考http://trac-hacks.org/wiki/AccountManagerPlugin
在您的 trac.ini 上执行以下操作 [成分] ;确保启用组件 acct_mgr.svnserve.* = 启用 acct_mgr.svnserve.svnservepasswordstore = 启用 ;选择一种哈希方法 acct_mgr.pwhash.htdigesthashmethod = 启用 acct_mgr.pwhash.htpasswdhashmethod = 启用
[客户经理] password_store = SvnServePasswordStore 密码文件 = /path/to/svn/repos/conf/passwd ;选择一种哈希方法 hash_method = HtDigestHashMethod hash_method = HtPasswdHashMethod
现在 trac 将使用数据库中的用户
【讨论】: