You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by "corentin-soriano (via GitHub)" <gi...@apache.org> on 2026/03/24 07:57:36 UTC
Re: [PR] GUACAMOLE-2057: Add configuration parameters for supporting Kerberos authentication for RDP. [guacamole-server]
corentin-soriano commented on code in PR #581:
URL: https://github.com/apache/guacamole-server/pull/581#discussion_r2979700565
##########
src/protocols/rdp/settings.c:
##########
@@ -1695,6 +1746,29 @@ void guac_rdp_push_settings(guac_client* client,
}
+ /* Set the authentication package to use. */
+ switch(guac_settings->auth_pkg) {
+
+ case GUAC_AUTH_PKG_NTLM:
+ freerdp_settings_set_string(rdp_settings, FreeRDP_AuthenticationPackageList, "ntlm,!kerberos");
+ break;
+
+ case GUAC_AUTH_PKG_KERBEROS:
+ freerdp_settings_set_string(rdp_settings, FreeRDP_AuthenticationPackageList, "!ntlm,kerberos");
+ break;
+
+ case GUAC_AUTH_PKG_ANY:
+ freerdp_settings_set_string(rdp_settings, FreeRDP_AuthenticationPackageList, "ntlm,kerberos");
+ break;
+
+ }
+
+ if (guac_settings->kdc_url != NULL)
+ freerdp_settings_set_string(rdp_settings, FreeRDP_KerberosKdcUrl, guac_strdup(guac_settings->kdc_url));
+
+ if (guac_settings->kerberos_cache != NULL)
+ freerdp_settings_set_string(rdp_settings, FreeRDP_KerberosCache, guac_strdup(guac_settings->kerberos_cache));
Review Comment:
The specific Kerberos code should only be enabled with FreeRDP >= 3.x to avoid compilation errors in 2.x.
--
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: dev-unsubscribe@guacamole.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org