Skip to content

Commit 3652da9

Browse files
committed
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>
1 parent ea848ec commit 3652da9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/environ.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ void mag_set_req_data(request_rec *req,
276276
mag_set_name_attributes(req, mc);
277277
}
278278

279+
#ifdef HAVE_CRED_STORE
279280
if (cfg->deleg_ccache_dir && mc->delegated) {
280281
char *ccname;
281282
ccname = mag_gss_name_to_ccache_name(req,
@@ -285,4 +286,5 @@ void mag_set_req_data(request_rec *req,
285286
mag_set_KRB5CCANME(req, ccname);
286287
}
287288
}
289+
#endif
288290
}

src/mod_auth_gssapi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ struct mag_req_cfg *mag_init_cfg(request_rec *req)
630630
return req_cfg;
631631
}
632632

633+
#ifdef HAVE_CRED_STORE
633634
static bool use_s4u2proxy(struct mag_req_cfg *req_cfg) {
634635
if (req_cfg->cfg->use_s4u2proxy) {
635636
if (req_cfg->cfg->deleg_ccache_dir != NULL) {
@@ -642,6 +643,7 @@ static bool use_s4u2proxy(struct mag_req_cfg *req_cfg) {
642643
}
643644
return false;
644645
}
646+
#endif
645647

646648
static int mag_auth(request_rec *req)
647649
{

0 commit comments

Comments
 (0)