kvspb / nginx-auth-ldap

LDAP authentication module for nginx
BSD 2-Clause "Simplified" License
732 stars 253 forks source link

Ignore Basic Access Authentication - Use SSL Client Cert CN #60

Open michaelmoss opened 9 years ago

michaelmoss commented 9 years ago

Hello.

I'm using both this nginx-auth-ldap and nginx with server/client SSL support (http://nategood.com/client-side-certificate-authentication-in-ngi). Both are working individually, however it seems the LDAP plugin insists on getting the credentials using HTTP Basic Access Auth. Is there a way to avoid this and pass the CN from the client cert instead? More simply, is there a way to hardcode the username/password in the nginx config for the ldap lookup and avoid requiring Basic Access Auth?

Thanks.