-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
…+ (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.
Hi @mterwoord, Thank you for this PR, but I'll need to make some changes before merging it:
Maybe:
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). |
You mean you are going to make those changes, or you want me to? regarding the points you mentioned:
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. |
If you want you can make those changes, but first you should check the fixes I’ve made to your PR. Didn’t had the time to test them.
Thanks.
…Sent from my Windows 10 phone
From: Matthijs ter Woord
Sent: Wednesday, May 17, 2017 9:15
To: cristianst85/QuickConnectPlugin
Cc: Cristian Stoica; Comment
Subject: Re: [cristianst85/QuickConnectPlugin] Add support for using RemoteDesktop Gateway servers. (#17)
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.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
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"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't seem to find any references that the gatewaybrokeringtype
parameter is supported by RDP+.
There was a problem hiding this comment.
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.
d13be9e
to
a2c5358
Compare
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:
useSameCredentials is optional.
Specifying the path to Rdp+ should be done in the main settings form.
This PR fixes #16