nginxinc / nginx-ldap-auth

Example of LDAP authentication using ngx_http_auth_request_module
BSD 2-Clause "Simplified" License
681 stars 202 forks source link

Anonymous supported ? #52

Closed alnhk closed 5 years ago

alnhk commented 5 years ago

We wanted to have nginx with anonymous LDAP access, can you please share the example on how the ldap config should be ? We dont provide "Root DN", no manager DN/password, only LDAP server , user search base, user search filter and group search base. To elaborate, just like we have "basic authentication" available with nginx, i need similar approach for nginx with ldap integration. Can any one please share config containing this such examples ?

vl-homutov commented 5 years ago

LDAP connection always has user/password pair. For the anonymous access, use 'anonymous' login with empty password, if your server is configured to allow it.

alnhk commented 5 years ago

There is no "anonymous user." The LDAP server supports anonymous bind, which means you don't bind as a user. Most software allows you to supply empty strings for DN and password to do this. https://ldap.com/the-ldap-bind-operation/

alnhk commented 5 years ago

LDAP connection always has user/password pair. For the anonymous access, use 'anonymous' login with empty password, if your server is configured to allow it.

There is no "anonymous user." The LDAP server supports anonymous bind, which means you don't bind as a user. Most software allows you to supply empty strings for DN and password to do this.

https://ldap.com/the-ldap-bind-operation/