From a64a32f520884039be0a2240bfa2b5f4040c9c99 Mon Sep 17 00:00:00 2001 From: Isaac Boukris Date: Sat, 17 Dec 2016 23:17:00 +0200 Subject: 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 Reviewed-by: Simo Sorce Reported-by: scopev24 Closes #119 --- src/mod_auth_gssapi.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mod_auth_gssapi.h') 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))) -- cgit