nginx-auth-ldap icon indicating copy to clipboard operation
nginx-auth-ldap copied to clipboard

Allow auth_ldap in NGX_HTTP_LIF_CONF context.

Open sobolev-es opened this issue 1 year ago • 1 comments

С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;
...
}

sobolev-es avatar Jul 25 '24 13:07 sobolev-es

Related issue #77

sobolev-es avatar Jul 25 '24 13:07 sobolev-es