aleitner commented on code in PR #633:
URL: https://github.com/apache/guacamole-server/pull/633#discussion_r3198291432
##########
src/protocols/rdp/settings.c:
##########
@@ -1645,8 +1660,30 @@ void guac_rdp_push_settings(guac_client* client,
freerdp_settings_set_bool(rdp_settings, FreeRDP_NlaSecurity, TRUE);
freerdp_settings_set_bool(rdp_settings, FreeRDP_ExtSecurity,
FALSE);
freerdp_settings_set_bool(rdp_settings, FreeRDP_VmConnectMode,
TRUE);
+ #ifdef HAVE_FREERDP_AAD_SUPPORT
+ freerdp_settings_set_bool(rdp_settings, FreeRDP_AadSecurity,
FALSE);
+ #endif
break;
+ /* Azure AD authentication */
+ case GUAC_SECURITY_AAD:
+ freerdp_settings_set_bool(rdp_settings, FreeRDP_RdpSecurity,
FALSE);
+ freerdp_settings_set_bool(rdp_settings, FreeRDP_TlsSecurity,
FALSE);
+ freerdp_settings_set_bool(rdp_settings, FreeRDP_NlaSecurity,
FALSE);
+ freerdp_settings_set_bool(rdp_settings, FreeRDP_ExtSecurity,
FALSE);
+
+ /* Enable AAD authentication in FreeRDP (only available in FreeRDP
3.0+) */
+ #ifdef HAVE_FREERDP_AAD_SUPPORT
+ freerdp_settings_set_bool(rdp_settings, FreeRDP_AadSecurity, TRUE);
+ guac_client_log(client, GUAC_LOG_INFO,
+ "Azure AD authentication enabled");
+ #else
+ guac_client_log(client, GUAC_LOG_ERROR,
+ "Azure AD authentication requested but not supported by this
version of FreeRDP. "
+ "FreeRDP 3.0 or later is required.");
+ #endif
+ break;
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]