summaryrefslogtreecommitdiff
path: root/src/providers/krb5/krb5_common.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2012-10-24 09:33:23 +0200
committerSumit Bose <sbose@redhat.com>2012-10-26 10:32:05 +0200
commit29c0fdd1838a4b9892146f7019d12811c1d0d59b (patch)
treebc162c26b9e640c461ceecf9cf4c9c99b2546626 /src/providers/krb5/krb5_common.h
parentd3dca30d3a6feba062d0299718d1a9fcdc8b9d17 (diff)
downloadsssd-29c0fdd1838a4b9892146f7019d12811c1d0d59b.tar.gz
sssd-29c0fdd1838a4b9892146f7019d12811c1d0d59b.tar.bz2
sssd-29c0fdd1838a4b9892146f7019d12811c1d0d59b.zip
Add new call find_or_guess_upn()
With the current approach the upn was either a pointer to a const string in a ldb_message or a string created with the help of talloc. This new function always makes it a talloc'ed value. Additionally krb5_get_simple_upn() is enhanced to handle sub-domains as well.
Diffstat (limited to 'src/providers/krb5/krb5_common.h')
-rw-r--r--src/providers/krb5/krb5_common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_common.h b/src/providers/krb5/krb5_common.h
index bc63bf98..13035291 100644
--- a/src/providers/krb5/krb5_common.h
+++ b/src/providers/krb5/krb5_common.h
@@ -175,7 +175,8 @@ errno_t write_krb5info_file(const char *realm, const char *kdc,
errno_t remove_krb5_info_files(TALLOC_CTX *mem_ctx, const char *realm);
errno_t krb5_get_simple_upn(TALLOC_CTX *mem_ctx, struct krb5_ctx *krb5_ctx,
- const char *username, const char **_upn);
+ const char *domain_name, const char *username,
+ const char *user_dom, char **_upn);
errno_t compare_principal_realm(const char *upn, const char *realm,
bool *different_realm);