mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +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:
parent
fb65808bb2
commit
542382aa2f
@ -813,14 +813,14 @@ NTSTATUS samba_kdc_update_delegation_info_blob(TALLOC_CTX *mem_ctx,
|
|||||||
}
|
}
|
||||||
smb_krb5_free_data_contents(context, &old_data);
|
smb_krb5_free_data_contents(context, &old_data);
|
||||||
|
|
||||||
ret = krb5_unparse_name_flags(context, server_principal,
|
ret = krb5_unparse_name(context, server_principal, &server);
|
||||||
KRB5_PRINCIPAL_UNPARSE_NO_REALM, &server);
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
talloc_free(tmp_ctx);
|
talloc_free(tmp_ctx);
|
||||||
return NT_STATUS_INTERNAL_ERROR;
|
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) {
|
if (ret) {
|
||||||
SAFE_FREE(server);
|
SAFE_FREE(server);
|
||||||
talloc_free(tmp_ctx);
|
talloc_free(tmp_ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user