1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:mitkdc: Call krb5_pac_init() in kdb_samba_db_sign_auth_data()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2021-12-13 08:31:49 +01:00 committed by Andrew Bartlett
parent 3a3f7feac5
commit abbeb5c217
2 changed files with 11 additions and 6 deletions

View File

@ -428,6 +428,12 @@ krb5_error_code kdb_samba_db_sign_auth_data(krb5_context context,
*/
if (with_pac && generate_pac) {
DBG_DEBUG("Generate PAC for AS-REQ [%s]\n", client_name);
code = krb5_pac_init(context, &pac);
if (code != 0) {
goto done;
}
code = ks_get_pac(context,
client_entry,
server,
@ -481,6 +487,11 @@ krb5_error_code kdb_samba_db_sign_auth_data(krb5_context context,
"delegation TGS [%s]\n",
client_name);
code = krb5_pac_init(context, &pac);
if (code != 0) {
goto done;
}
code = ks_get_pac(context,
client_entry,
server,

View File

@ -501,12 +501,6 @@ int mit_samba_get_pac(struct mit_samba_context *smb_ctx,
pcred_blob = &cred_blob;
}
code = krb5_pac_init(context, pac);
if (code != 0) {
talloc_free(tmp_ctx);
return code;
}
code = samba_make_krb5_pac(context,
logon_info_blob,
pcred_blob,