Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,22 @@ then
[[#include <freerdp/freerdp.h>]])
fi

# Check for either AuthenticateEx or Authenticate callbacks.
if test "x${have_freerdp}" = "xyes"
then
AC_CHECK_MEMBERS([freerdp.AuthenticateEx],,
[AC_CHECK_MEMBERS([freerdp.Authenticate],,
[AC_MSG_WARN([
----------------------------------------------------
This version of FreeRDP appears to lack support
for both Authenticate and AuthenticateEx functions.
RDP connections may fail if credentials are not
provided with the connection.
Comment thread
necouchman marked this conversation as resolved.
----------------------------------------------------])],
[[#include <freerdp/freerdp.h>]])],
[[#include <freerdp/freerdp.h>]])
Comment thread
mike-jumper marked this conversation as resolved.
fi

if test "x${have_freerdp}" = "xyes"
then
AC_CHECK_DECLS([winpr_aligned_free],
Expand Down
18 changes: 18 additions & 0 deletions src/protocols/rdp/argv.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@ int guac_rdp_argv_callback(guac_user* user, const char* mimetype,
settings->domain = guac_strdup(value);
}

/* Update gateway username */
else if (strcmp(name, GUAC_RDP_ARGV_GATEWAY_USERNAME) == 0) {
guac_mem_free(settings->gateway_username);
settings->gateway_username = guac_strdup(value);
}

/* Update gateway password */
else if (strcmp(name, GUAC_RDP_ARGV_GATEWAY_PASSWORD) == 0) {
guac_mem_free(settings->gateway_password);
settings->gateway_password = guac_strdup(value);
}

/* Update gateway domain */
else if (strcmp(name, GUAC_RDP_ARGV_GATEWAY_DOMAIN) == 0) {
guac_mem_free(settings->gateway_domain);
settings->gateway_domain = guac_strdup(value);
}

return 0;

}
18 changes: 18 additions & 0 deletions src/protocols/rdp/argv.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,23 @@ guac_argv_callback guac_rdp_argv_callback;
*/
#define GUAC_RDP_ARGV_DOMAIN "domain"

/**
* The name of the parameter that specifies/updates the gateway username that
* will be sent to the RDP server during authentication.
*/
#define GUAC_RDP_ARGV_GATEWAY_USERNAME "gateway-username"

/**
* The name of the parameter that specifies/updates the gateway password that
* will be sent to the RDP server during authentication.
*/
#define GUAC_RDP_ARGV_GATEWAY_PASSWORD "gateway-password"

/**
* The name of the parmaeter that specifies/updates the gateway domain that
* will be sent to the RDP server during authentication.
*/
#define GUAC_RDP_ARGV_GATEWAY_DOMAIN "gateway-domain"

#endif

Loading
Loading