Workaround for ironrdp's CredSSP implementation not interoperating with Windows Server 2025 Datacenter — reported by surf5726 on #109.
Diagnostic summary
surf5726 paired Haven's failure logcat with Microsoft Remote Desktop's successful connection to the same server with the same credentials. The side-by-side settled it:
- Haven's NTLM CredSSP flow gets all the way through stage 3 AUTHENTICATE (NEGOTIATE → CHALLENGE → AUTHENTICATE +
pub_key_auth+client_nonce). - Server then tears down the TLS session with an
internal_erroralert instead of a clean CredSSP response. - MS's Remote Desktop app connects successfully against the same server.
So the credentials, server config, and "server accepts NLA" are all fine — the issue is specifically that Haven's CredSSP (via ironrdp + sspi-rs) doesn't pass Windows Server 2025's tightened validation. The likely upstream bugs are MIC placement in NTLMv2 AUTHENTICATE and/or the pub_key_auth hash format. Those need fixing upstream in ironrdp / sspi-rs; I'll pull in a new revision when they land.
Workaround this release ships
New "Network Level Authentication (NLA)" checkbox on the RDP connection edit dialog (default on — existing behaviour). Untick it to request SSL-only security during the handshake — no CredSSP.
Server-side prerequisite: System Properties → Remote → "Allow connections only from computers running Remote Desktop with Network Level Authentication" must be off. If it's on (common on domain-joined / GPO-enforced production machines) the server will refuse the SSL-only connection and you'll get a different error; in that case the only path is waiting for the upstream CredSSP fix.
Plumbing
ConnectionProfilegainsrdpUseNla: Boolean = true(DB migration 38 → 39,BackupServiceround-trips it).RdpConfigin Rust gainsenable_credssp: bool;build_configwires it into ironrdp's connector config (was hard-codedtrue).RdpSessiontakes auseNlaparameter;DesktopViewModel.addRdpSessiontakes it;RdpNavigationcarries it;HavenNavHostthreads it from Connections → Desktop.
Default behaviour is unchanged for everyone else. When the toggle is on you get exactly the same CredSSP-first handshake as v5.24.31/.32.
Build artifacts
Signed APKs for arm64 and x86_64 attached. arm64 is the one for phones and tablets.