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

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. #53

Closed alnhk closed 5 years ago

alnhk commented 5 years ago

Originally posted by @vl-homutov in https://github.com/nginxinc/nginx-ldap-auth/issues/52#issuecomment-422722501

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/

I am only providing this : url ldap://nsp-openldap-local:389; binddn ou=people,dc=odc,dc=im; binddn_passwd ; require valid_user;

vl-homutov commented 5 years ago

So what is the problem when you provide empty DN/password?

vl-homutov commented 5 years ago

Feedback timeout.