Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for using Remote Desktop Gateway servers. #17

Closed
wants to merge 1 commit into from

Conversation

mterwoord
Copy link

Add support for using Remote Desktop Gateway servers. Works using Rdp+ (See https://www.donkz.nl/)
Add settings for the gateway in same style as putty settings. ("key: value;key2: value2").

Sample:

  • rdgateway: my-gateway-hostname-or-ip; useSameCredentials: yes
    useSameCredentials is optional.

Specifying the path to Rdp+ should be done in the main settings form.

This PR fixes #16

…+ (See https://www.donkz.nl/)

Add settings for the gateway in same style as putty settings. ("key: value;key2: value2").
Sample:
- rdgateway: my-gateway-hostname-or-ip; useSameCredentials: yes
useSameCredentials is optional.
@cristianst85
Copy link
Owner

cristianst85 commented May 16, 2017

Hi @mterwoord,

Thank you for this PR, but I'll need to make some changes before merging it:

  • Add new dialog that will be used for configuring app paths: QuickConnect Options > Settings tab > Configure Paths... button). This will restore the height of QuickConnect Options dialog to initial size (in a near future I'll be removing PsPasswd Path from Password Changer tab and thus options dialog will shrink even further).
  • Add more test cases for RemoteDesktopArgumentsFormatter to cover the new behaviour;
  • Add test cases for RdpPlusOptionsParser;
  • Code styling.

Maybe:

  • Rename useSameCredentials key to PromptCredentialOnce (case insensitive) and use true/false values (language independent) instead of yes/no.

What do you think?

P.S. I'll also implement a native mode (using .rdp file) to connect using Remote Desktop Gateway (in a separate PR).

@mterwoord
Copy link
Author

You mean you are going to make those changes, or you want me to?

regarding the points you mentioned:

  • New dialog: Sure, I just thought i'd extend the existing one.
  • Tests is always good
  • Code styling: I did my best to adhere to your style.

The name of the setting: All for it, just thought, as the user has to enter it manually, we'd better use a simple name.

@cristianst85
Copy link
Owner

cristianst85 commented May 17, 2017 via email

RdpPlusOptions options;
if (RdpPlusOptionsParser.TryParse(hostPwEntry.AdditionalOptions, out options)) {
if (!string.IsNullOrEmpty(options.RDGateway)) {
var extraOptions = "gatewayhostname:s:" + options.RDGateway + ", gatewayusagemethod:i:2, gatewaycredentialssource:i:4, gatewayprofileusagemethod:i:1, gatewaybrokeringtype:i:0";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mterwoord,

I can't seem to find any references that the gatewaybrokeringtype parameter is supported by RDP+.

https://www.donkz.nl/overview-rdp-file-settings/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are passed to the /o argument of RDP+, which basically means "pass this on to ms rdp".
What I did was save the rdp file from mstsc without gateway and with gateway, and added those options here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional field for RDP Gateway server
2 participants