mirror of
https://github.com/mainnika/nginx-auth-ldap.git
synced 2026-06-13 02:13:36 +00:00
fix Issue 8
This commit is contained in:
@@ -437,6 +437,11 @@ static ngx_int_t ngx_http_auth_ldap_authenticate(ngx_http_request_t *r, ngx_http
|
|||||||
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (uinfo->password.len == 0)
|
||||||
|
{
|
||||||
|
return ngx_http_auth_ldap_set_realm(r, &conf->realm);
|
||||||
|
}
|
||||||
|
|
||||||
/// Set LDAP version to 3 and set connection timeout.
|
/// Set LDAP version to 3 and set connection timeout.
|
||||||
ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, &version);
|
ldap_set_option(NULL, LDAP_OPT_PROTOCOL_VERSION, &version);
|
||||||
ldap_set_option(NULL, LDAP_OPT_NETWORK_TIMEOUT, &timeOut);
|
ldap_set_option(NULL, LDAP_OPT_NETWORK_TIMEOUT, &timeOut);
|
||||||
|
|||||||
Reference in New Issue
Block a user