Auth PAM#
该模块添加了对 PAM 认证的支持。 在 例如,要通过 LDAP 服务器进行用户认证(使用 详细文档和源代码可在以下链接获取:
sto/ngx_http_auth_pam_module加载模块#
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
更多信息#