diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2011-03-29 02:50:28 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-04-25 08:06:34 -0400 |
commit | cfd79b92d3813ed53ef51ae2cf93be6287e73a27 (patch) | |
tree | 1607a23b6699d270cd6a783b0e7e9678100b5538 /src/util/sss_krb5.h | |
parent | 743475e5d730f1438bff4bb086600186adfe8311 (diff) | |
download | sssd-cfd79b92d3813ed53ef51ae2cf93be6287e73a27.tar.gz sssd-cfd79b92d3813ed53ef51ae2cf93be6287e73a27.tar.xz sssd-cfd79b92d3813ed53ef51ae2cf93be6287e73a27.zip |
Extend and move function for finding principal in keytab
The function now supports finding principal in keytab not only based on
realm, but based on both realm and primary/instance parts. The function
also supports * wildcard at the beginning or at the end of primary
principal part. The function for finding principal has been moved to
util/sss_krb5.c, so it can be used in other parts of the code.
Diffstat (limited to 'src/util/sss_krb5.h')
-rw-r--r-- | src/util/sss_krb5.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h index 0a82315cc..f25f3285b 100644 --- a/src/util/sss_krb5.h +++ b/src/util/sss_krb5.h @@ -58,6 +58,12 @@ int sss_krb5_verify_keytab(const char *principal, int sss_krb5_verify_keytab_ex(const char *principal, const char *keytab_name, krb5_context context, krb5_keytab keytab); +krb5_error_code find_principal_in_keytab(krb5_context ctx, + krb5_keytab keytab, + const char *pattern_primary, + const char *pattern_realm, + krb5_principal *princ); + #ifndef HAVE_KRB5_GET_INIT_CREDS_OPT_SET_EXPIRE_CALLBACK typedef void krb5_expire_callback_func(krb5_context context, void *data, krb5_timestamp password_expiration, |