# This is a sample configuration for the ldap_server section of nginx.conf. # Yours will vary depending on how your Active Directory/LDAP server is configured. # See https://github.com/kvspb/nginx-auth-ldap#available-config-parameters for options. ldap_server ad_server { url "ldap://ds.example.com:3268/DC=example,DC=com?sAMAccountName?sub?(objectClass=person)"; binddn "bind_dn"; binddn_passwd "bind_dn_password"; group_attribute member; group_attribute_is_dn on; require group "CN=malcolm,OU=groups,DC=example,DC=com"; require valid_user; satisfy all; } auth_ldap_cache_enabled on; auth_ldap_cache_expiration_time 10000; auth_ldap_cache_size 1000;