From 6d8f79e876de0a1df3f40d82fd5e2a907f175729 Mon Sep 17 00:00:00 2001 From: Valery Komarov Date: Wed, 16 Nov 2011 11:53:06 +0300 Subject: [PATCH] Fix Issue 9 --- ngx_http_auth_ldap_module.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ngx_http_auth_ldap_module.c b/ngx_http_auth_ldap_module.c index b153bcd..b06d4d7 100644 --- a/ngx_http_auth_ldap_module.c +++ b/ngx_http_auth_ldap_module.c @@ -419,7 +419,6 @@ static ngx_int_t ngx_http_auth_ldap_authenticate(ngx_http_request_t *r, ngx_http int reqcert = LDAP_OPT_X_TLS_ALLOW; int rc; - int isSecure = 0; ngx_uint_t i; ngx_ldap_require_t *value; ngx_ldap_userinfo *uinfo; @@ -449,10 +448,6 @@ static ngx_int_t ngx_http_auth_ldap_authenticate(ngx_http_request_t *r, ngx_http return NGX_HTTP_INTERNAL_SERVER_ERROR; } - /// Get the URL scheme ( either ldap or ldaps ) - if (0 == ngx_strcmp(ludpp->lud_scheme, "ldaps")) - isSecure = 1; - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "LDAP: URL: %s", conf->url.data); rc = ldap_initialize(&ld, (const char*) conf->url.data);