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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]