From 0416d3211463e523ca1d29fa6f7eb2681b44289c Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Thu, 21 Oct 2021 14:12:46 +0100 Subject: [PATCH] Neutrinordp: Add more user info on connect failure --- neutrinordp/xrdp-neutrinordp.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/neutrinordp/xrdp-neutrinordp.c b/neutrinordp/xrdp-neutrinordp.c index 6f403e07..10f2c0bd 100644 --- a/neutrinordp/xrdp-neutrinordp.c +++ b/neutrinordp/xrdp-neutrinordp.c @@ -257,7 +257,15 @@ lxrdp_connect(struct mod *mod) LOG(LOG_LEVEL_INFO, buf); mod->server_msg(mod, buf, 0); } - +#else + { + /* This version of freerdp returns no useful information at + * all */ + mod->server_msg(mod, "Neutrinordp connect failed.", 0); + mod->server_msg(mod, "No more information is available", 0); + mod->server_msg(mod, "Check host is up" + " and credentials are correct", 0); + } #endif LOG(LOG_LEVEL_ERROR, "NeutrinoRDP proxy connection: status [Failed]," " RDP client [%s:%s], RDP server [%s:%d], RDP server username [%s],"