wip(lldap): Consultant

This commit is contained in:
Madeleine Sydney
2025-02-19 20:30:39 -07:00
45 changed files with 3054 additions and 55 deletions

View File

@@ -89,11 +89,11 @@ in {
proxy_cache auth_cache;
proxy_cache_valid 200 10m;
proxy_cache_key "$http_authorization$cookie_nginxauth";
proxy_set_header X-Ldap-URL "ldap://localhost:${port}";
proxy_set_header X-Ldap-BaseDN "cn=people,${base-dn}";
proxy_set_header X-Ldap-BindDN "cn=${nginx-bind-user},${base-dn}";
proxy_set_header X-Ldap-BindPass "secret123";
proxy_set_header X-CookieName "nginxauth";
# proxy_set_header X-Ldap-URL "ldap://localhost:${port}";
# proxy_set_header X-Ldap-BaseDN "cn=people,${base-dn}";
# proxy_set_header X-Ldap-BindDN "cn=${nginx-bind-user},${base-dn}";
# proxy_set_header X-Ldap-BindPass "secret123";
# proxy_set_header X-CookieName "nginxauth";
proxy_set_header Cookie nginxauth=$cookie_nginxauth;
'';
};