From 4e617f9794b677442432440012f7e42e6cbb6df8 Mon Sep 17 00:00:00 2001 From: Valery Komarov Date: Tue, 20 Sep 2011 23:33:56 +0400 Subject: [PATCH] Fix: Issue 5 --- ngx_http_auth_ldap_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngx_http_auth_ldap_module.c b/ngx_http_auth_ldap_module.c index fcb6ca0..bf201e3 100644 --- a/ngx_http_auth_ldap_module.c +++ b/ngx_http_auth_ldap_module.c @@ -507,7 +507,7 @@ static ngx_int_t ngx_http_auth_ldap_authenticate(ngx_http_request_t *r, ngx_http rc = ldap_compare_ext_s(ld, (const char*) value[i].data, (const char*) conf->group_attribute.data, &bvalue, NULL, NULL); - if (rc != LDAP_COMPARE_TRUE && rc != LDAP_COMPARE_FALSE) { + if (rc != LDAP_COMPARE_TRUE && rc != LDAP_COMPARE_FALSE && rc != LDAP_NO_SUCH_ATTRIBUTE ) { ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, "LDAP: ldap_search_ext_s: %d, %s", rc, ldap_err2string(rc)); ldap_memfree(dn);