diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-14 16:08:22 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-07-07 10:28:31 +0200 |
commit | 2892ddd30663dbc94d15c94a5549fa74260072ce (patch) | |
tree | a28b72a4cc03516de3fd53355a9589c50d339007 /src/providers | |
parent | 5a299e7c9f634ae86c9bd7e0a1e681aed79de6b5 (diff) | |
download | sssd-2892ddd30663dbc94d15c94a5549fa74260072ce.tar.gz sssd-2892ddd30663dbc94d15c94a5549fa74260072ce.tar.xz sssd-2892ddd30663dbc94d15c94a5549fa74260072ce.zip |
KRB5: Use shortname when expanding the user template in Kerberos ccache
Creating the username part of the ccache file is an output operation, it
makes sense to use sss_output_name() there which parses the name out of
the internal qualified name.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/krb5/krb5_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c index 7fd490514..0ac60daee 100644 --- a/src/providers/krb5/krb5_utils.c +++ b/src/providers/krb5/krb5_utils.c @@ -280,12 +280,12 @@ char *expand_ccname_template(TALLOC_CTX *mem_ctx, struct krb5child_req *kr, if (kr->pd->user == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, "Cannot expand user name template " - "because user name is empty.\n"); + "because user name is empty.\n"); goto done; } - name = sss_get_cased_name(tmp_ctx, kr->pd->user, - case_sensitive); - if (!name) { + + name = sss_output_name(tmp_ctx, kr->pd->user, case_sensitive, 0); + if (name == NULL) { DEBUG(SSSDBG_CRIT_FAILURE, "sss_get_cased_name failed\n"); goto done; |