r->ap_auth_type = r->main->ap_auth_type;
}
else {
- char *failed_user = NULL;
switch (ap_satisfies(r)) {
case SATISFY_ALL:
case SATISFY_NOSPEC:
if ((access_status = ap_run_check_user_id(r)) != OK) {
if (access_status == HTTP_UNAUTHORIZED) {
- failed_user = r->user;
r->user = NULL;
ap_log_rerror(APLOG_MARK, APLOG_TRACE2, 0, r,
"authn failed with HTTP_UNAUTHORIZED, "
}
if ((access_status = ap_run_auth_checker(r)) != OK) {
- if (failed_user)
- r->user = failed_user;
return decl_die(access_status, "check authorization", r);
}
break;
if ((access_status = ap_run_check_user_id(r)) != OK) {
if (access_status == HTTP_UNAUTHORIZED) {
- failed_user = r->user;
r->user = NULL;
ap_log_rerror(APLOG_MARK, APLOG_TRACE2, 0, r,
"authn failed with HTTP_UNAUTHORIZED, "
}
if ((access_status = ap_run_auth_checker(r)) != OK) {
- if (failed_user)
- r->user = failed_user;
return decl_die(access_status, "check authorization", r);
}
}