Authenticate users via LDAP using nginx
7
votes
3
answers
23257
views
I know how to auth the users via LDAP in apache2:
# put the following in the VirtualHost
ServerAdmin user1@bar.foo.com
DocumentRoot /var/www
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 emailAddress=someuser@bar.foo.com
**Q:** But we need to use nginx. How can we configure nginx to auth via LDAP?
Using Ubuntu 12.04.5
Asked by thequestionthequestion
(345 rep)
Nov 2, 2014, 10:11 AM
Last activity: Sep 16, 2022, 12:12 AM
Last activity: Sep 16, 2022, 12:12 AM