Console mode fix (#7902)

* core: correctly handle console mode server-side

In server-side we were not interpreting redirected session flag to compute a
console mode flag. In the proxy that was leading client connecting with /admin to front
to not connect with /admin on the back server.

* nla: fix the printinng of the package name
This commit is contained in:
David Fort 2022-05-16 09:05:48 +02:00 committed by GitHub
parent 372153bba3
commit 97c65d9701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -1812,7 +1812,10 @@ BOOL gcc_read_client_cluster_data(wStream* s, rdpMcs* mcs, UINT16 blockLength)
Stream_Read_UINT32(s, redirectedSessionId); /* redirectedSessionId */
if (flags & REDIRECTED_SESSIONID_FIELD_VALID)
{
settings->RedirectedSessionId = redirectedSessionId;
settings->ConsoleSession = !!(redirectedSessionId == 0);
}
if (blockLength != 8)
{

View File

@ -1056,7 +1056,7 @@ static int nla_client_init(rdpNla* nla)
if (nla->status != SEC_E_OK)
return -1;
WLog_DBG(TAG, "%s %" PRIu32 " : packageName=%ls ; cbMaxToken=%d", __FUNCTION__, __LINE__,
WLog_DBG(TAG, "%s %" PRIu32 " : packageName=%s ; cbMaxToken=%d", __FUNCTION__, __LINE__,
nla->packageName, nla->cbMaxToken);
nla->status = nla->table->AcquireCredentialsHandle(NULL, NLA_PKG_NAME, SECPKG_CRED_OUTBOUND,
NULL, nla->identityPtr, NULL, NULL,