summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-12-08 14:43:46 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-08 09:50:50 -0500
commit6369396f3b6e87ee8322b7bae9d2901e1a2fa37d (patch)
tree22172e6b13d3577b19f3321caaff9153b16f4dd8 /src
parent8d163c0a088318ed9fc0b22def2649e27992ea53 (diff)
downloadsssd-6369396f3b6e87ee8322b7bae9d2901e1a2fa37d.tar.gz
sssd-6369396f3b6e87ee8322b7bae9d2901e1a2fa37d.tar.xz
sssd-6369396f3b6e87ee8322b7bae9d2901e1a2fa37d.zip
Fix build issue with older Kerberos library
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__ */