【问题标题】:Trac Using Database Authentication使用数据库身份验证跟踪
【发布时间】:2010-11-02 04:56:00
【问题描述】:

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

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

【问题讨论】:

    标签: python mysql apache trac


    【解决方案1】:

    开箱即用,Trac doesn't actually do its own authentication,它将它留给网络服务器。因此,您可以使用大量与 Apache 相关的选项。您可以查看 auth_mysql 之类的内容,以便将用户凭据保存在数据库中。

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

    【讨论】:

    • 这似乎是最好的方法。
    • 您所指的文件不完整且已有四年历史。
    • 添加了替代链接,因为这是现在接受的答案。
    【解决方案2】:

    您可以使用Account Manager Plugin with SessionStore

    AccountManagerPlugin 提供了多种管理用户帐户的功能:

    • 允许用户注册新账户
    • 通过 HTML 表单而不是使用 HTTP 身份验证登录
    • 允许现有用户更改密码或删除帐户
    • 向忘记密码的用户发送新密码
    • 用户帐户管理

    【讨论】:

      【解决方案3】:

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-12-31
        • 2015-02-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多