summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/external/krb5.m41
-rw-r--r--src/util/sss_krb5.c10
-rw-r--r--src/util/sss_krb5.h3
3 files changed, 14 insertions, 0 deletions
diff --git a/src/external/krb5.m4 b/src/external/krb5.m4
index ce442cecf..40d632ce5 100644
--- a/src/external/krb5.m4
+++ b/src/external/krb5.m4
@@ -42,6 +42,7 @@ AC_CHECK_FUNCS([krb5_get_init_creds_opt_alloc krb5_get_error_message \
krb5_get_init_creds_opt_set_expire_callback \
krb5_get_init_creds_opt_set_fast_ccache_name \
krb5_get_init_creds_opt_set_fast_flags \
+ krb5_get_init_creds_opt_set_canonicalize \
krb5_unparse_name_flags])
CFLAGS=$SAVE_CFLAGS
LIBS=$SAVE_LIBS
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index ddd79be82..3311ef542 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -913,3 +913,13 @@ cleanup:
return ret;
#endif /* HAVE_KRB5_UNPARSE_NAME_FLAGS */
}
+
+void sss_krb5_get_init_creds_opt_set_canonicalize(krb5_get_init_creds_opt *opts,
+ int canonicalize)
+{
+#ifdef HAVE_KRB5_GET_INIT_CREDS_OPT_SET_CANONICALIZE
+ return krb5_get_init_creds_opt_set_canonicalize(opts, canonicalize);
+#else
+ DEBUG(SSSDBG_OP_FAILURE, ("Kerberos principal canonicalization is not avaliable!\n"));
+#endif
+}
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h
index 15f862b47..039b79af0 100644
--- a/src/util/sss_krb5.h
+++ b/src/util/sss_krb5.h
@@ -112,4 +112,7 @@ krb5_error_code
sss_krb5_unparse_name_flags(krb5_context context, krb5_const_principal principal,
int flags, char **name);
+void sss_krb5_get_init_creds_opt_set_canonicalize(krb5_get_init_creds_opt *opts,
+ int canonicalize);
+
#endif /* __SSS_KRB5_H__ */