Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions modules/aaa/mod_authnz_ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,21 @@ static int authz_ldap_check_user_access(request_rec *r)
req->user = r->user;
}

/* add environment variables */
if (sec->attributes && vals) {
apr_table_t *e = r->subprocess_env;
int i = 0;
while (sec->attributes[i]) {
char *str = apr_pstrcat(r->pool, AUTHN_PREFIX, sec->attributes[i], NULL);
int j = sizeof(AUTHN_PREFIX)-1; /* string length of "AUTHENTICATE_", excluding the trailing NIL */
while (str[j]) {
str[j] = apr_toupper(str[j]);
j++;
}
apr_table_setn(e, str, vals[i]);
}
}

/* Loop through the requirements array until there's no elements
* left, or something causes a return from inside the loop */
for(x=0; x < reqs_arr->nelts; x++) {
Expand Down