summaryrefslogtreecommitdiffstats
path: root/src/util/sss_krb5.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2014-09-25 15:34:20 -0400
committerJakub Hrozek <jhrozek@redhat.com>2014-09-29 18:15:40 +0200
commit5ae539828197f032d3e2ccb27e87ccf2a1d94996 (patch)
tree2a06062fdf60bd20228f0c608e28584abb44dc77 /src/util/sss_krb5.h
parentc683b8d730f4ec838244147d70a0275d53459aa5 (diff)
downloadsssd-5ae539828197f032d3e2ccb27e87ccf2a1d94996.tar.gz
sssd-5ae539828197f032d3e2ccb27e87ccf2a1d94996.tar.xz
sssd-5ae539828197f032d3e2ccb27e87ccf2a1d94996.zip
krb5: make get_primary() a public call
This patch changes get_primary() into sss_krb5_get_primary() so it can be used by the AD provider to get the sAMAccountName from the hostname. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util/sss_krb5.h')
-rw-r--r--src/util/sss_krb5.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h
index ee43f2983..83c720975 100644
--- a/src/util/sss_krb5.h
+++ b/src/util/sss_krb5.h
@@ -184,4 +184,10 @@ char * sss_get_ccache_name_for_principal(TALLOC_CTX *mem_ctx,
krb5_context ctx,
krb5_principal principal,
const char *location);
+
+char *
+sss_krb5_get_primary(TALLOC_CTX *mem_ctx,
+ const char *pattern,
+ const char *hostname);
+
#endif /* __SSS_KRB5_H__ */