BUG: https://bugzilla.samba.org/show_bug.cgi?id=13131
Signed-off-by: Stefan Metzmacher <metze@samba.org>
goto out;
}
+ if (b->enc_authorization_data && r->rk_is_subkey == 0) {
+ krb5_free_keyblock_contents(r->context, &r->enc_ad_key);
+ ret = krb5_copy_keyblock_contents(r->context,
+ &evidence_tkt.key,
+ &r->enc_ad_key);
+ if (ret)
+ goto out;
+ }
+
kdc_log(r->context, r->config, 4, "constrained delegation for %s "
"from %s (%s) to %s", s4ucname, r->cname, s4usname, r->sname);