diff options
-rw-r--r-- | src/external/krb5.m4 | 1 | ||||
-rw-r--r-- | src/util/sss_krb5.c | 10 | ||||
-rw-r--r-- | src/util/sss_krb5.h | 3 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/external/krb5.m4 b/src/external/krb5.m4 index ce442cec..40d632ce 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 ddd79be8..3311ef54 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 15f862b4..039b79af 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__ */ |