nginxinc/nginx-ldap-auth

Anonymous supported ?

alnhk opened this issue · 3 comments

alnhk commented

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 ?

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

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

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/