From 3aa566d576d7dafed74b739c4e8c394b92471318 Mon Sep 17 00:00:00 2001 From: Andreas Peters Date: Wed, 21 Feb 2018 17:03:04 +0100 Subject: [PATCH] change user_dn to dn --- ngx_http_auth_ldap_module.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ngx_http_auth_ldap_module.c b/ngx_http_auth_ldap_module.c index c8f39c6..f3c2677 100644 --- a/ngx_http_auth_ldap_module.c +++ b/ngx_http_auth_ldap_module.c @@ -2214,9 +2214,9 @@ ngx_http_auth_ldap_check_group(ngx_http_request_t *r, ngx_http_auth_ldap_ctx_t * if (ctx->server->group_attribute_dn == 1) { user_val = ngx_pcalloc( r->pool, - ctx->user_dn.len + 1); - ngx_memcpy(user_val, ctx->user_dn.data, ctx->user_dn.len); - user_val[ctx->user_dn.len] = '\0'; + ctx->dn.len + 1); + ngx_memcpy(user_val, ctx->dn.data, ctx->dn.len); + user_val[ctx->dn.len] = '\0'; } else { user_val = ngx_pcalloc( r->pool,