1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00

Revert "s4:kdc: fix the principal names in samba_kdc_update_delegation_info_blob"

This reverts commit 2557d5c6235f7d24866163124fc254cfe81d3871.
This commit is contained in:
Karolin Seeger 2018-02-21 10:15:22 +01:00
parent fb65808bb2
commit 542382aa2f

View File

@ -813,14 +813,14 @@ NTSTATUS samba_kdc_update_delegation_info_blob(TALLOC_CTX *mem_ctx,
}
smb_krb5_free_data_contents(context, &old_data);
ret = krb5_unparse_name_flags(context, server_principal,
KRB5_PRINCIPAL_UNPARSE_NO_REALM, &server);
ret = krb5_unparse_name(context, server_principal, &server);
if (ret) {
talloc_free(tmp_ctx);
return NT_STATUS_INTERNAL_ERROR;
}
ret = krb5_unparse_name(context, proxy_principal, &proxy);
ret = krb5_unparse_name_flags(context, proxy_principal,
KRB5_PRINCIPAL_UNPARSE_NO_REALM, &proxy);
if (ret) {
SAFE_FREE(server);
talloc_free(tmp_ctx);