Blog

Viewing posts from May, 2012

Apache PAM 认证

要通过mod_auth_pam模块来使用本地密码验证,Apache用户需要shadow文件的读权限。修改文件/etc/shadow为550,然后将文件的group改为Apache使用的Group ,最好不要使用默认的组名。

Apache LDAP 认证

目前有两个常用的 ldap 认证模块,分别是 mod_auth_ldap 和 auth_ldap,其中 auth_ldap 是 apache 默认安装的,在配置 require group 时使用 mod_auth_ldap 并没有配置成功。

Apache IMAP 认证

Apache通过mod_auth_imap模块支持IMAP服务器验证用户。

Shell 变量替换

变量赋值

赋值

在设定变量的时侯,得遵守如下规则: