Add option to disallow getting krbtgt out from from KCM. KCM will do

the fetching part itself.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15296 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-05-30 10:17:43 +00:00
parent 6889cb4fac
commit 90645a3e39
2 changed files with 20 additions and 0 deletions

View File

@@ -315,6 +315,15 @@ kcm_op_retrieve(krb5_context context,
return ret;
}
if (disallow_getting_krbtgt &&
mcreds.client->name.name_string.len == 2 &&
strcmp(mcreds.client->name.name_string.val[0], KRB5_TGS_NAME) == 0)
{
free(name);
krb5_free_creds_contents(context, &mcreds);
return KRB5_FCC_PERM;
}
ret = kcm_ccache_resolve_client(context, client, opcode,
name, &ccache);
if (ret) {