Auth PAM#

The module adds support for PAM authentication.

Loading the module#

Load the module in the main{} context:

load_module modules/ngx_http_auth_pam_module.so;

Configuration example#

location /secure {
    auth_pam              "Secure Zone";
    auth_pam_service_name "angie";
}

As an example, to authenticate users via an LDAP server (using the pam_ldap.so module), the /etc/pam.d/angie file may contain:

auth    required     /lib/security/pam_ldap.so
account required     /lib/security/pam_ldap.so

Additional information#

Detailed documentation and source code are available at: sto/ngx_http_auth_pam_module