通过原生 mstsc.exe 进行 RDP 无法正常工作
作者: bad13创建于 2026年9月23日更新于 2026年9月23日
Steps to reproduce
- Configure an RDP target and a user ("admin") with a Warpgate password credential; the authentication policy for RDP is set to require only "Password" (verified in the admin UI, no OTP/2FA involved).
- Confirm that the same username/password successfully logs into the Warpgate web UI.
- Connect via native mstsc using an ".rdp" file with an explicit "username:s:admin:" 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:
内容来源: warp-tech/warpgate