diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c index ca9ef19e0a5..079030ee5e8 100644 --- a/source4/kdc/pac-glue.c +++ b/source4/kdc/pac-glue.c @@ -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);