summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/krb5/krb5_child.c4
-rw-r--r--src/util/sss_krb5.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 44853e76d..b973c1345 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1528,8 +1528,8 @@ static int krb5_child_setup(struct krb5_req *kr, uint32_t offline)
if (strcasecmp(use_fast_str, "demand") == 0) {
kerr = sss_krb5_get_init_creds_opt_set_fast_flags(kr->ctx,
- kr->options,
- KRB5_FAST_REQUIRED);
+ kr->options,
+ SSS_KRB5_FAST_REQUIRED);
if (kerr != 0) {
DEBUG(1, ("sss_krb5_get_init_creds_opt_set_fast_flags "
"failed.\n"));
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h
index d74df832e..0a82315cc 100644
--- a/src/util/sss_krb5.h
+++ b/src/util/sss_krb5.h
@@ -81,4 +81,11 @@ krb5_error_code KRB5_CALLCONV sss_krb5_get_init_creds_opt_set_fast_flags(
krb5_context context,
krb5_get_init_creds_opt *opt,
krb5_flags flags);
+
+#if HAVE_KRB5_GET_INIT_CREDS_OPT_SET_FAST_FLAGS
+#define SSS_KRB5_FAST_REQUIRED KRB5_FAST_REQUIRED
+#else
+#define SSS_KRB5_FAST_REQUIRED 0
+#endif
+
#endif /* __SSS_KRB5_H__ */