diff --git a/ngx_http_auth_ldap_module.c b/ngx_http_auth_ldap_module.c index 3ed2049..d703f4f 100644 --- a/ngx_http_auth_ldap_module.c +++ b/ngx_http_auth_ldap_module.c @@ -1708,11 +1708,6 @@ ngx_http_auth_ldap_authenticate(ngx_http_request_t *r, ngx_http_auth_ldap_ctx_t } } - if (ctx->server->require_valid_user == 0) { - ctx->phase = PHASE_NEXT; - break; - } - /* Initiate bind using the found DN and request password */ rc = ngx_http_auth_ldap_check_bind(r, ctx); if (rc == NGX_AGAIN) {