twiki启用pam
来源:互联网 发布:烟台网络党校上不去 编辑:程序博客网 时间:2024/05/06 14:41
{PasswordManager} = none
{LoginManager} = TWiki::LoginManager::ApacheLogin
%COPYRIGHT%
%INFO_CLASSIFICATION_CONFIDENTIAL%
mod_perl is an Apache module that greatly speeds up Perl CGI applications by pre-loading the Perl interpreter and compiling Perl scripts only once - it can be used with TWiki with no code changes. It is already used by some TWiki sites on both Unix/Linux and Windows. For more background, see http://perl.apache.org/. See also ModPerlProxied for configuration with the Advanced Extranet Server. (http://www.advx.org).
---++ Install mod_perl
%CODE{lang="c"}%
yum -y install mod_perl
%ENDCODE%
* You can generate the twiki.conf and mod_perl_startup.pl from the website: http://twiki.org/cgi-bin/view/TWiki.ApacheConfigGenerator. Put the twiki.conf to /etc/httpd/conf.d and mod_perl_startup.pl to /var/www/html/twiki/tools.
---++ Install PAM
* pluggable authentication for Apache
* The PAM authentication module implements Basic authentication on top of the Pluggable Authentication Module library. Due to constraints in the "Basic" authentication scheme (RFC 2617), it only supports username/password-style authentication. Due to the architecture of Apache, it only supports modules that can run as an unprivileged (non-root) user.That said, it works quite well for standard /etc/passwd authentication and, with a little bit of work, can support NIS and SMB auth and probably others. As all these are system password databases, it should be used in conjunction with SSL/TLS.
* Install mod_auth_pam for TWiki. You can download the "mod_auth_pam" rpm package from internnet. Then you will find /etc/httpd/conf.d/auth_pam.conf.
* cat auth_pam.conf
%CODE{lang="c"}%
LoadModule auth_pam_module modules/mod_auth_pam.so
LoadModule auth_sys_group_module modules/mod_auth_sys_group.so
%ENDCODE%
* edit twiki.conf
* Add
%CODE{lang="c"}%
AuthPAM _Enabled on
AuthPAM _FallThrough off
%ENDCODE%
Between
%CODE{lang="c"}%
<Directory "/var/www/html/twiki/bin">
%ENDCODE%
and
%CODE{lang="c"}%
AuthName
%ENDCODE%
* Add
%CODE{lang="c++"}%
<FilesMatch "(attach|edit|manage|rename|save|upload|mail|logon|rest|.*auth).*">
require valid-user
</FilesMatch>
%ENDCODE%
After
%CODE{lang="c"}%
<'FilesMatch "^(configure)$">
!SetHandler cgi-script
Order Deny,Allow
Deny from all
Allow from rat093 192.168.21.143 127.0.0.1
Require user timwang
Satisfy Any
</FilesMatch>
%ENDCODE%
---++ You can review the details from attached files "twiki.conf" and "mod_perl_startup.pl".
- twiki启用pam
- pam
- PAM
- twiki语法
- twiki漏洞
- TWiki架设
- TWiki 语法格式(TWiki语法教程及TWiki使用技巧)
- TWiki -- 今天你TWiki了吗?
- 如何安装TWiki(中文TWiki的安装)
- TWiki http://www.allwiki.com/wiki/TWiki
- twiki格式说明
- Twiki的URL编码
- Twiki安装出错
- How to TWiki install
- 配置Twiki(一)
- TWiki 语法格式
- twiki安装使用手记
- Twiki安装-傻瓜式
- java基础学习篇——2、java语言的一些基本语法
- WinCE下可用的3G
- 第18 题:题目:n 个数字(0,1,…,n-1)形成一个圆圈,从数字0 开始,
- 最隐晦的程序设计指引
- AttributeError: 'classmethod' object has no attribute '__module__'
- twiki启用pam
- js文本加密及解密器
- How to burn Linux Kernel into nor flash and rootfs in USB stick at Mindspeed c1k
- EVC在双核PC上调试速度慢的原因
- 技术博客
- WinCE 应用程序开机自启动方法
- Win7登录时,登录Administrator,出现 Group policy client 未启动,无法登陆
- 动态调用 WebService(精)
- android仓库 用到的网址。