diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2011-11-01 17:05:52 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-02 14:10:30 -0400 |
commit | 20c187339201a95558a9b237af37b461665d9340 (patch) | |
tree | 514665aa18d4dda32ff6f406db49e66f997bb82a /src | |
parent | d56e06fef114459a5ec0f674d2b105ab29ae17aa (diff) | |
download | sssd-20c187339201a95558a9b237af37b461665d9340.tar.gz sssd-20c187339201a95558a9b237af37b461665d9340.tar.bz2 sssd-20c187339201a95558a9b237af37b461665d9340.zip |
Add wrapper for krb5_get_init_creds_opt_set_canonicalize
Diffstat (limited to 'src')
-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__ */ |