Line 10
Link Here
|
|
|
70 |
int set_env_on_authz; /* If true, will set environment vars on authorization */ |
Line 292
Link Here
|
|
|
293 |
sec->set_env_on_authz = 0; |
Line 606
Link Here
|
|
|
608 |
/* add environment variables if AuthLDAPAuthzSetEnvironment is set to on */ |
609 |
if (sec->attributes && vals && sec->set_env_on_authz) { |
610 |
apr_table_t *e = r->subprocess_env; |
611 |
int i = 0; |
612 |
while (sec->attributes[i]) { |
613 |
char *str = apr_pstrcat(r->pool, AUTHN_PREFIX, sec->attributes[i], NULL); |
614 |
int j = sizeof(AUTHN_PREFIX)-1; /* string length of "AUTHENTICATE_", excluding the trailing NIL */ |
615 |
while (str[j]) { |
616 |
str[j] = apr_toupper(str[j]); |
617 |
j++; |
618 |
} |
619 |
apr_table_setn(e, str, vals[i]); |
620 |
i++; |
621 |
} |
622 |
} |
Line 1104
Link Here
|
|
|
1123 |
AP_INIT_TAKE1("AuthLDAPAuthzSetEnvironment", ap_set_flag_slot, |
1124 |
(void *)APR_OFFSETOF(authn_ldap_config_t, set_env_on_authz), OR_AUTHCFG, |
1125 |
"If set to 'on', auth_ldap will set the AUTHENTICATE_ variables even if" |
1126 |
"only doing authorization." |
1127 |
"Defaults to off."), |