#2623·warpgate

RDP via native mstsc.exe doesn´t work

Author: bad13Created Sep 23, 2026Updated Sep 23, 2026

Environment

  • Warpgate version/Docker image tag: ghcr.io/warp-tech/warpgate:v29.0
  • Deployment: Docker on Linux, behind Traefik (Traefik does TLS termination for the web UI; RDP port 3389 is passed through to Warpgate)
  • Network: client and RDP targets are in the same Windows AD domain
  • Windows client OS/build: Windows 11 25H2
  • RDP client: native mstsc.exe (browser-based HTML5 RDP session works fine)

warpgate.yml (rdp section)

yaml
rdp:
  enable: true
  listen: '[::]:3389'
  proxy_protocol: false
  external_port: null
  external_host: null
  certificate: /data/tls.certificate.pem
  key: /data/tls.key.pem

Steps to reproduce

  1. Configure an RDP target and a user (admin) with a Warpgate password credential; Auth policy for RDP is set to require only "Password" (verified in the admin UI, no OTP/2FA involved).
  2. Confirm the same username/password successfully logs into the Warpgate web UI.
  3. Connect via native mstsc using an .rdp file with an explicit username:s:admin:<target-name> line (to rule out any username-format/autofill issues) and the same password.

Expected behavior

Either a successful login, or — if the credentials were actually wrong — a clean CredSSP rejection that mstsc surfaces as a normal "your credentials did not work, try again" prompt.

Actual behavior

The connection is rejected every time, and the client shows a generic, seemingly random disconnect error instead of a credential prompt — observed twice, with different codes each time:

  • Attempt 1: "Die Sitzung wurde aufgrund eines Protokollfehlers getrennt." — Fehlercode: 0xd06, Erweiterter Fehlercode: 0x0
  • Attempt 2: "Die Sitzung von Remotedesktopdienste wurde beendet... vermutlich aufgrund von Netzwerkkonnektivitätsproblemen." — Fehlercode: 0x904, Erweiterter Fehlercode: 0x0

Warpgate server logs

Each test attempt produces two log entries with different session IDs in the same second — one that never reaches the auth check, and one that does and is rejected:

INFO RDP{session=}: warpgate_protocol_rdp::server: Session ended WARN RDP{session=}: warpgate_protocol_rdp::server::rdp: RDP session ended with error error=failed to accept client during finalize: [read frame by hint @ vendor/ironrdp-async/src/framed.rs:271] custom error: peer closed connection without sending TLS close_notify: https://docs.rs/rustls/latest/rustls/manual/_03_howto/index.html#unexpected-eof

INFO RDP{session=}: audit: Authentication failed _type="UserAuthenticationFailed1" session= client_ip= user_id= username=admin credentials=password reason=invalid credential related_users=$$ WARN RDP{session=}: warpgate_protocol_rdp::server: Authentication failed WARN RDP{session=}: warpgate_protocol_rdp::server::rdp: RDP session ended with error error=credential validation rejected INFO RDP{session=}: warpgate_protocol_rdp::server: Session ended

This exact pattern reproduced identically across two separate connection attempts (different timestamps, same session structure and same reason=invalid credential).

What's been ruled out

  • Username format (user:target) — tested explicitly via .rdp file to eliminate client-side autofill/typo issues.
  • Password correctness — same credential works for the Warpgate web UI login.
  • Auth/credential policy — RDP policy requires only "Password", no additional factor (OTP) that a single-shot CredSSP exchange couldn't satisfy.
  • TLS/certificate trust — no certificate warning is ever shown to the client, and the failure happens after TLS/NLA, at the credential-validation stage.

This points to a problem in the CredSSP/NTLM credential-validation path for RDP specifically (separate from the password check used for the web UI login), rather than a config/policy issue on our side. Happy to provide more logs/details if useful.