summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2016-01-13 09:40:21 -0500
committerSimo Sorce <simo@redhat.com>2016-01-13 09:48:31 -0500
commit3652da99739cc95c8278ba726e7446ec1e9c9e0f (patch)
tree36b74057aa42791d6550195f204ee8b181389066
parentea848ec7ac001d2ea181e7f3e52c8c946cffd15c (diff)
downloadmod_auth_gssapi-3652da99739cc95c8278ba726e7446ec1e9c9e0f.tar.gz
mod_auth_gssapi-3652da99739cc95c8278ba726e7446ec1e9c9e0f.tar.xz
mod_auth_gssapi-3652da99739cc95c8278ba726e7446ec1e9c9e0f.zip
Fix build when cred store is not available.
Older distributions have versions of Kerberos that miss this feature. Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r--src/environ.c2
-rw-r--r--src/mod_auth_gssapi.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/environ.c b/src/environ.c
index 49b648c..1ea72e0 100644
--- a/src/environ.c
+++ b/src/environ.c
@@ -276,6 +276,7 @@ void mag_set_req_data(request_rec *req,
mag_set_name_attributes(req, mc);
}
+#ifdef HAVE_CRED_STORE
if (cfg->deleg_ccache_dir && mc->delegated) {
char *ccname;
ccname = mag_gss_name_to_ccache_name(req,
@@ -285,4 +286,5 @@ void mag_set_req_data(request_rec *req,
mag_set_KRB5CCANME(req, ccname);
}
}
+#endif
}
diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c
index 6d12036..088fb88 100644
--- a/src/mod_auth_gssapi.c
+++ b/src/mod_auth_gssapi.c
@@ -630,6 +630,7 @@ struct mag_req_cfg *mag_init_cfg(request_rec *req)
return req_cfg;
}
+#ifdef HAVE_CRED_STORE
static bool use_s4u2proxy(struct mag_req_cfg *req_cfg) {
if (req_cfg->cfg->use_s4u2proxy) {
if (req_cfg->cfg->deleg_ccache_dir != NULL) {
@@ -642,6 +643,7 @@ static bool use_s4u2proxy(struct mag_req_cfg *req_cfg) {
}
return false;
}
+#endif
static int mag_auth(request_rec *req)
{