I know how to auth the users via LDAP in apache2:
# put the following in the VirtualHost
<VirtualHost *:443>
ServerAdmin [email protected]
DocumentRoot /var/www
<Directory />
AuthType Basic
AuthName "Please provide USERNAME AND PASSWORD"
AuthBasicProvider ldap
Order allow,deny
Allow from all
AuthLDAPURL "ldaps://ehh.foo.com/ou=ehh,o=foo.com?mail"
Require valid-user
Require ldap-attribute [email protected]
Q: But we need to use nginx. How can we configure nginx to auth via LDAP?
Using Ubuntu 12.04.5