Hide client name of privacy reasons

This commit is contained in:
Love Hornquist Astrand
2011-05-09 21:39:26 -07:00
committed by Love Hörnquist Åstrand
parent 65254713a2
commit 0332787e0f

View File

@@ -481,6 +481,13 @@ _kdc_encode_reply(krb5_context context,
data.data, data.length);
if (ret)
return ret;
/*
* Hide client name of privacy reasons
*/
rep->crealm[0] = '\0';
free_PrincipalName(&rep->cname);
rep->cname.name_type = 0;
}
if(rep->msg_type == krb_as_rep && !config->encode_as_rep_as_tgs_rep)