summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2011-11-01 17:05:52 +0100
committerStephen Gallagher <sgallagh@redhat.com>2011-11-02 14:10:30 -0400
commit20c187339201a95558a9b237af37b461665d9340 (patch)
tree514665aa18d4dda32ff6f406db49e66f997bb82a /src/util
parentd56e06fef114459a5ec0f674d2b105ab29ae17aa (diff)
downloadsssd-20c187339201a95558a9b237af37b461665d9340.tar.gz
sssd-20c187339201a95558a9b237af37b461665d9340.tar.bz2
sssd-20c187339201a95558a9b237af37b461665d9340.zip
Add wrapper for krb5_get_init_creds_opt_set_canonicalize
Diffstat (limited to 'src/util')
-rw-r--r--src/util/sss_krb5.c10
-rw-r--r--src/util/sss_krb5.h3
2 files changed, 13 insertions, 0 deletions
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__ */