diff options
author | Isaac Boukris <iboukris@gmail.com> | 2016-12-17 23:17:00 +0200 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2017-01-11 14:43:08 -0500 |
commit | a64a32f520884039be0a2240bfa2b5f4040c9c99 (patch) | |
tree | 530cd2646932424e87e8127e0a81c5b99cac6d48 /src/mod_auth_gssapi.h | |
parent | 63706efbbc75ae6fd928813cdd45242025c0fe61 (diff) | |
download | mod_auth_gssapi-a64a32f520884039be0a2240bfa2b5f4040c9c99.tar.gz mod_auth_gssapi-a64a32f520884039be0a2240bfa2b5f4040c9c99.tar.xz mod_auth_gssapi-a64a32f520884039be0a2240bfa2b5f4040c9c99.zip |
rewrite: implicitly handle internal redirects
Internal redirects are a special case of subrequest - they
have no req->main but req->prev instead, so we should check
for that too in case the request is not initial.
Also, make sure to export MAG environment variables to
subrequests and internal redirects.
Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Reported-by: scopev24
Closes #119
Diffstat (limited to 'src/mod_auth_gssapi.h')
-rw-r--r-- | src/mod_auth_gssapi.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_auth_gssapi.h b/src/mod_auth_gssapi.h index 1a5ff8b..2aa81f1 100644 --- a/src/mod_auth_gssapi.h +++ b/src/mod_auth_gssapi.h @@ -52,6 +52,8 @@ # endif #endif +extern module AP_MODULE_DECLARE_DATA auth_gssapi_module; + struct mag_na_map { char *env_name; char *attr_name; @@ -77,7 +79,7 @@ struct mag_config { uid_t deleg_ccache_uid; gid_t deleg_ccache_gid; gss_key_value_set_desc *cred_store; - bool deleg_ccache_unique;; + bool deleg_ccache_unique; bool s4u2self; #endif struct seal_key *mag_skey; @@ -124,6 +126,7 @@ struct mag_conn { int na_count; struct mag_attr *name_attributes; const char *ccname; + apr_table_t *env; }; #define discard_const(ptr) ((void *)((uintptr_t)(ptr))) |