change user_dn to dn

main
Andreas Peters 7 years ago
parent 49cfe7820a
commit 3aa566d576
No known key found for this signature in database
GPG Key ID: 6A83F12541CFCCF9
  1. 6
      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) { if (ctx->server->group_attribute_dn == 1) {
user_val = ngx_pcalloc( user_val = ngx_pcalloc(
r->pool, r->pool,
ctx->user_dn.len + 1); ctx->dn.len + 1);
ngx_memcpy(user_val, ctx->user_dn.data, ctx->user_dn.len); ngx_memcpy(user_val, ctx->dn.data, ctx->dn.len);
user_val[ctx->user_dn.len] = '\0'; user_val[ctx->dn.len] = '\0';
} else { } else {
user_val = ngx_pcalloc( user_val = ngx_pcalloc(
r->pool, r->pool,

Loading…
Cancel
Save