A FastAPI app that authenticates users via LDAP and sets a cookie for nginx
Project description
nginx-ldap-auth-service
nginx-ldap-auth-service
provides a method of authenticating users who request
protected resources from servers proxied by nginx
against an LDAP or Active Directory server. It provides a daemon
(nginx-ldap-auth
) that communicates with an LDAP or Active Directory server
to authenticate users with their username and password, as well as a login form
for actually allowing users to authenticate.
The nginx-ldap-auth
server utilizes the ngx_http_auth_request_module
to do
its work. To see if your version of nginx
has that installed, do:
$ nginx -V
nginx version: nginx/1.23.4
root@cb1533767dca:/# nginx -V
nginx version: nginx/1.23.4
built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
built with OpenSSL 1.1.1n 15 Mar 2022
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-1.23.4/debian/debuild-base/nginx-1.23.4=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'
Look through the configure arguments
for --with-http_auth_request_module
. If you see that,
you're all set to begin using nginx-ldap-auth-service
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nginx-ldap-auth-service-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a191e12e040d7955f7ffda69cea4640858ab9917ceacb09463243030273cc8d |
|
MD5 | 08e94eb29a1ee95352d2aae457e1a4eb |
|
BLAKE2b-256 | 2ce1a4e00fbb0ed4279d522237707a08e8a46a8f5b77baa81d9b70d3da7172ec |
Hashes for nginx_ldap_auth_service-2.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd1340522765c8db477aa997413fe7e5b7362e2a7c11a69594e4d27f77eb8b6 |
|
MD5 | 193a5e5de326ba0b9226e8e144929bc7 |
|
BLAKE2b-256 | 59372cc6bf7685758409b1b47ce69a25e760428d98dcc485e2c387ac2c68c2b3 |