nginx-auth-ldap
nginx-auth-ldap copied to clipboard
Allow auth_ldap in NGX_HTTP_LIF_CONF context.
Сonfiguration example
geo $authentication {
default "on";
127.0.0.1 "off";
192.168.0.0/24 "off";
...
}
server {
...
location / {
if ($authentication = "on"){
auth_ldap "UCS Auth required!";
}
auth_ldap_servers ucs;
...
}
Related issue #77