feat(rdp): RD Gateway transport (experimental)
RDP profiles can go through a Remote Desktop Gateway (MS-TSGU over an
HTTPS WebSocket) with its own username and password, stored like other
credentials (rdp-gateway-password). The gateway stream is bridged to a
loopback socket so the blocking RDP client uses it like any transport.
IronRDP's gateway crate (0.0.1) is vendored with fixes: it used
ironrdp-tls, which accepts any certificate, before sending Basic
credentials — the gateway is now verified against the web PKI; its
asserts on gateway-supplied lengths are errors instead of panics; and
the server port is passed through. Checked against a self-signed
openssl s_server: the connection is refused ('invalid peer certificate')
before any request or credential is sent. Not tested against a real
gateway; Basic-auth gateways only (no NTLM).
This commit is contained in:
@@ -739,6 +739,19 @@ impl ProfileEditor {
|
||||
check(ui, "Resize With Tab", &mut c.dynamic_resolution, "Ask the server to match the tab's size as it changes");
|
||||
}
|
||||
});
|
||||
section(ui, "RD Gateway", |ui| {
|
||||
text(ui, "Gateway", &mut c.gateway_host, "gateway.example.com (empty: none)");
|
||||
err(ui, errs, "rdp.gatewayHost");
|
||||
if !c.gateway_host.trim().is_empty() {
|
||||
text(ui, "Gateway Username", &mut c.gateway_username, "DOMAIN\\user");
|
||||
err(ui, errs, "rdp.gatewayUsername");
|
||||
mode(ui, "Gateway Password Storage", &mut c.gateway_secret_mode);
|
||||
if c.gateway_secret_mode == SecretMode::Saved {
|
||||
secret(ui, "Gateway Password", secrets, SecretKind::RdpGatewayPassword, "Leave blank to keep the saved password");
|
||||
}
|
||||
widgets::hint(ui, "Experimental: gateways that accept Basic authentication over HTTPS (the gateway's certificate is verified).");
|
||||
}
|
||||
});
|
||||
section(ui, "Proxy", |ui| {
|
||||
combo_s(ui, "Proxy Type", &mut c.proxy_type, &[("none", "None (direct connection)"), ("socks5", "SOCKS5"), ("http", "HTTP CONNECT")]);
|
||||
err(ui, errs, "rdp.proxyType");
|
||||
|
||||
Reference in New Issue
Block a user