(krb5_get_kdc_cred): copy the principals from in_creds -> out_creds.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2790 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -165,6 +165,19 @@ krb5_get_kdc_cred(krb5_context context,
|
|||||||
|
|
||||||
memset(&rep, 0, sizeof(rep));
|
memset(&rep, 0, sizeof(rep));
|
||||||
if(decode_TGS_REP(resp.data, resp.length, &rep.part1, &len) == 0){
|
if(decode_TGS_REP(resp.data, resp.length, &rep.part1, &len) == 0){
|
||||||
|
/*
|
||||||
|
* Not sure what should be done with out_creds->client and server
|
||||||
|
*/
|
||||||
|
|
||||||
|
krb5_copy_principal (context,
|
||||||
|
in_creds->client,
|
||||||
|
&(*out_creds)->client);
|
||||||
|
|
||||||
|
krb5_copy_principal (context,
|
||||||
|
in_creds->server,
|
||||||
|
&(*out_creds)->server);
|
||||||
|
|
||||||
|
|
||||||
ret = extract_ticket(context, &rep, *out_creds,
|
ret = extract_ticket(context, &rep, *out_creds,
|
||||||
&krbtgt->session,
|
&krbtgt->session,
|
||||||
NULL,
|
NULL,
|
||||||
|
Reference in New Issue
Block a user