diff options
author | Jan Pazdziora <jpazdziora@redhat.com> | 2016-11-16 18:19:27 +0100 |
---|---|---|
committer | Jan Pazdziora <jpazdziora@redhat.com> | 2016-11-22 15:58:55 +0100 |
commit | b0db1a8b25c6d44748eea01359b6e4ebcb539d8a (patch) | |
tree | 9dc841ddc6b0533b88937e43ddd05bf8d9990b14 | |
parent | 6a4b5717f674f3638d42271c3922bcd4384ad10e (diff) | |
download | mod_authnz_pam-b0db1a8b25c6d44748eea01359b6e4ebcb539d8a.tar.gz mod_authnz_pam-b0db1a8b25c6d44748eea01359b6e4ebcb539d8a.tar.xz mod_authnz_pam-b0db1a8b25c6d44748eea01359b6e4ebcb539d8a.zip |
Force and send the response redirect status, to avoid the default 401.
-rw-r--r-- | mod_authnz_pam.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mod_authnz_pam.c b/mod_authnz_pam.c index ad10e6a..23ccf61 100644 --- a/mod_authnz_pam.c +++ b/mod_authnz_pam.c @@ -180,7 +180,9 @@ static authn_status pam_authenticate_with_login_password(request_rec * r, const SHOW_MODULE "PAM_NEW_AUTHTOK_REQD: redirect to [%s]", conf->expired_redirect_url); apr_table_addn(r->headers_out, "Location", format_location(r, conf->expired_redirect_url, login)); - return HTTP_TEMPORARY_REDIRECT; + r->status = HTTP_TEMPORARY_REDIRECT; + ap_send_error_response(r, 0); + return AUTH_DENIED; } } } |