diff options
author | Sumit Bose <sbose@redhat.com> | 2012-10-24 09:33:23 +0200 |
---|---|---|
committer | Sumit Bose <sbose@redhat.com> | 2012-10-26 10:32:05 +0200 |
commit | 29c0fdd1838a4b9892146f7019d12811c1d0d59b (patch) | |
tree | bc162c26b9e640c461ceecf9cf4c9c99b2546626 /src/providers/krb5/krb5_utils.h | |
parent | d3dca30d3a6feba062d0299718d1a9fcdc8b9d17 (diff) | |
download | sssd-29c0fdd1838a4b9892146f7019d12811c1d0d59b.tar.gz sssd-29c0fdd1838a4b9892146f7019d12811c1d0d59b.tar.xz 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_utils.h')
-rw-r--r-- | src/providers/krb5/krb5_utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_utils.h b/src/providers/krb5/krb5_utils.h index 43fe77bd8..28485458c 100644 --- a/src/providers/krb5/krb5_utils.h +++ b/src/providers/krb5/krb5_utils.h @@ -32,6 +32,11 @@ #include "providers/krb5/krb5_auth.h" #include "providers/data_provider.h" +errno_t find_or_guess_upn(TALLOC_CTX *mem_ctx, struct ldb_message *msg, + struct krb5_ctx *krb5_ctx, + const char *domain_name, const char *user, + const char *user_dom, char **_upn); + /* Operations on a credential cache */ typedef errno_t (*cc_be_create_fn)(const char *location, pcre *illegal_re, uid_t uid, gid_t gid, bool private_path); |