分类目录

安装 Trac 插件 – Account Manager Plugin

安装设置 Trac后,默认的用户使用的是 Apache2 自带的验证功能。用它来做用户管理不是很方便,推荐使用插件进行管理。
Homepage: Account Manager Plugin

安装过程

For Trac 0.10:
easy_install http://trac-hacks.org/svn/accountmanagerplugin/0.10
For Trac 0.11
easy_install http://trac-hacks.org/svn/accountmanagerplugin/0.11
For Trac 0.12:
easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk

配置插件

修改Apache配置

删除 Apache2 配置信息,/etc/apache2/sites-available/default

<LocationMatch “/[^/]+/login”>
AuthType Basic
AuthName “trac”
AuthUserFile /var/www/trac/.htpasswd
Require valid-user
<LocationMatch>

修改trac.ini配置

配置文件中增加,/var/www/trac/conf/trac.ini

[components]
trac.web.auth.LoginModule = disabled #禁用传统的登录模块插件
acct_mgr.web_ui.LoginModule = enabled
acct_mgr.web_ui.RegistrationModule = disabled
acct_mgr.htfile.HtPasswdStore = enabled

[account-manager]
password_format = htpasswd
password_store = HtPasswdStore
password_file = /var/www/trac/.htpasswd #这里配置密码文件的路径,根据实际情况修改

重启服务

$ sudo /etc/init.d/apache2 restart

Refer to:
为Trac安装基于Web表单登录验证界面的插件

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>