This ensures that in the all-Samba PAC creation code, we do not escape a space character if present
in the logon name. This matches what we do in the Heimdal code in the KDC.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
LOGON_INFO->info3 = *sam3;
ret = krb5_unparse_name_flags(context, client_principal,
- KRB5_PRINCIPAL_UNPARSE_NO_REALM, &name);
+ KRB5_PRINCIPAL_UNPARSE_NO_REALM |
+ KRB5_PRINCIPAL_UNPARSE_DISPLAY,
+ &name);
if (ret) {
return ret;
}