From ecc29d00c0ea9091ce066d852e6f5f95348c9c22 Mon Sep 17 00:00:00 2001 From: Martin Fleisz Date: Mon, 13 Mar 2023 10:48:12 +0100 Subject: [PATCH] core: Allow NULL identity for NLA authentication During the recent changes the possiblity to perform NLA auth using the current identity was removed. In case we receive AUTH_NO_CREDENTIALS with NLA we should resume using a NULL-identity and not abort the connection. --- libfreerdp/core/nla.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index 2e5450676..2f324f6d9 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -336,9 +336,8 @@ static BOOL nla_client_setup_identity(rdpNla* nla) freerdp_set_last_error_log(instance->context, FREERDP_ERROR_CONNECT_CANCELLED); return FALSE; case AUTH_NO_CREDENTIALS: - freerdp_set_last_error_log(instance->context, - FREERDP_ERROR_CONNECT_NO_OR_MISSING_CREDENTIALS); - return FALSE; + WLog_INFO(TAG, "No credentials provided - using NULL identity"); + break; default: return FALSE; }