Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 715 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 715 Bytes

nginx-auth-request-ldap

This service provides LDAP authentication for nginx via the http_auth_request API.

Installation

go get -u github.com/presbrey/nginx-auth-request-ldap

Use systemd or supervisord to daemonize nginx-auth-request-ldap.

Features

  • authentication cache w/ configurable TTL
  • bind DN template integrates with any LDAP provider/schema

Options

Usage of ./nginx-auth-request-ldap:
  -U="uid=%s,cn=users,cn=accounts,dc=example,dc=com": username template
  -h="ldap.example.com": LDAP server host
  -p=636: LDAP server port
  -r="EXAMPLE.COM": authentication realm
  -t=1m0s: cache TTL