Trac安装用户注册及登录插件模块
2011-07-08 10:34
501 查看
缘由
我所安装的Trac是与VisualSVNServer进行整合的。Trac默认安装时所采用的认证为HTTP的认证方式。其不方便的地方为:
1. 某一用户登录后,在COOKIE有效的时间内,无法变更用户登录;
2. 用户无修改密码的地方,只能通过管理员进行修改;
安装过程
1.至http://trac-hacks.org/wiki/AccountManagerPlugin下载帐户管理插件http://trac-hacks.org/changeset/latest/accountmanagerplugin/0.11?old_path=/&filename=accountmanagerplugin/0.11&format=zip
2. 解压后使用python setup.py bdist_egg命令将其打包成egg;
3. easy_install XXX.egg;
4. 以TRAC_ADMIN的身份登录trac,在管理->插件中,对所安装的tracaccountmanager 0.2.1dev组件进行启用;
5. 回到apache的配置文件httpd-custom.conf, 将/login部分的验证部分Require valid-user 注释掉;
6. 在trac.ini中components的SECTION,增加trac.web.auth.loginmodule = disabled行,要求trac禁用http验证的方式;
7. 在trac.ini中新增[account-manager] section;
1) password_store 指明了密码的存取方式
2) password_file指明了密码文件的位置
3) password_format 指明了格式, 因VisualSVNServer所集成的apache用的是htpasswd文件格式,故值写入相应的
8.重启VisualSVNServer完成
我所安装的Trac是与VisualSVNServer进行整合的。Trac默认安装时所采用的认证为HTTP的认证方式。其不方便的地方为:
1. 某一用户登录后,在COOKIE有效的时间内,无法变更用户登录;
2. 用户无修改密码的地方,只能通过管理员进行修改;
安装过程
1.至http://trac-hacks.org/wiki/AccountManagerPlugin下载帐户管理插件http://trac-hacks.org/changeset/latest/accountmanagerplugin/0.11?old_path=/&filename=accountmanagerplugin/0.11&format=zip
2. 解压后使用python setup.py bdist_egg命令将其打包成egg;
3. easy_install XXX.egg;
4. 以TRAC_ADMIN的身份登录trac,在管理->插件中,对所安装的tracaccountmanager 0.2.1dev组件进行启用;
5. 回到apache的配置文件httpd-custom.conf, 将/login部分的验证部分Require valid-user 注释掉;
<Location '/trac_home/1st/login'> AuthType Basic AuthName "Trac_home 1st project" AuthUserFile D:/Repositories/htpasswd #Require valid-user </Location>
6. 在trac.ini中components的SECTION,增加trac.web.auth.loginmodule = disabled行,要求trac禁用http验证的方式;
[components] trac.web.auth.loginmodule = disabled acct_mgr.admin.accountmanageradminpage = enabled acct_mgr.api.accountmanager = enabled acct_mgr.db.sessionstore = enabled acct_mgr.htfile.abstractpasswordfilestore = enabled acct_mgr.htfile.htpasswdstore = enabled acct_mgr.http.httpauthstore = enabled acct_mgr.notification.accountchangelistener = enabled acct_mgr.notification.accountchangenotificationadminpanel = enabled acct_mgr.pwhash.htpasswdhashmethod = enabled acct_mgr.web_ui.accountmodule = enabled acct_mgr.web_ui.loginmodule = enabled
7. 在trac.ini中新增[account-manager] section;
1) password_store 指明了密码的存取方式
2) password_file指明了密码文件的位置
3) password_format 指明了格式, 因VisualSVNServer所集成的apache用的是htpasswd文件格式,故值写入相应的
[account-manager] password_store = HtPasswdStore password_file = D:\Repositories\htpasswd password_format = htpasswd
8.重启VisualSVNServer完成
相关文章推荐
- Trac--用户管理(安装用户注册及登录插件模块)
- Ubuntu安装时没注册root用户密码,怎么登录root
- 小作品(小项目?)技术总结(1)--用户注册、用户登录常用功能模块
- PHP用户登录注册模块实现
- Android实战简易教程-第二十三枪(基于Baas的用户注册和登录模块实现!)
- iOS开发一个用户登录注册模块需要解决的坑
- 一键安装linux (附带各种命令,登录欢迎界面,用户登录模块。)
- 微信小程序开发3-用户登录.注册模块
- 给TRAC项目添加注册模块和使用html方式登录
- 13款WordPress用户注册登录插件
- (十)用户管理模块(登录,注册,修改,重置密码MD5加密,时间戳+sql server 2014)
- 用户注册/登录模块实践
- 13款WordPress用户注册登录插件
- 一键安装linux (附带各种命令,登录欢迎界面,用户登录模块。)
- 一键安装linux (附带各种命令,登录欢迎界面,用户登录模块。)
- CodeIgniter 用户登录注册模块
- iOS开发用户登录注册模块所遇到的问题
- phpcms V9 安装黄页模块后,注册为普通会员并登录,点立即免费入驻企业库出现白板
- Java入门:用户登录与注册模块1(实践项目)——分析
- 为Trac安装基于Web表单登录验证界面的插件