Auth PAM#
该模块添加了对 PAM 认证的支持。 要 安装 该模块,请使用以下软件包之一: Angie: Angie PRO: 在 例如,要通过 LDAP 服务器进行用户认证(使用 详细文档和源代码可在以下链接获取:
sto/ngx_http_auth_pam_module安装#
angie-module-auth-pam
angie-pro-module-auth-pam
加载模块#
main{}
上下文中加载模块:load_module modules/ngx_http_auth_pam_module.so;
配置示例#
location /secure {
auth_pam "Secure Zone";
auth_pam_service_name "angie";
}
pam_ldap.so
模块),可以将 /etc/pam.d/angie
文件内容设置为:auth required /lib/security/pam_ldap.so
account required /lib/security/pam_ldap.so
更多信息#