CredSSP errors when attempting to use RDP Web Client

CredSSP errors when attempting to use RDP Web Client

avatar

When attempting to use the Devolutions Server RDP Web Client
[CredSSP] CredSSP Caused by: InvalidToken: CredSSP server returned an error status; status is STATUS_ACCOUNT_RESTRICTION [0xc000006e]

Any help would be greatly appreciated.

All Comments (5)

avatar

Hi,

STATUS_ACCOUNT_RESTRICTION [0xc000006e] is normally returned by the server when the user can be properly authenticated, but the user is not a member of the Remote Desktop Users local group on the destination RDP server. Can you verify that it is possible to connect to the same server using the same user using mstsc or another RDP client first?

Best regards,

Marc-André Moreau

avatar

The account is a Domain Administrator. I can connect normally through Remote Desktop Manager and the RDP client.

I think it may be related to that account being a member of the Active Directory "Protected Users" group, which protects the credentials from caching?

avatar

This would make sense - in this case, Kerberos is mandatory. Did you configure the KDC proxy in Devolutions Gateway to allow the RDP web client to authenticate with Kerberos?

https://docs.devolutions.net/kb/devolutions-gateway/how-to-articles/use-nla-rdp-connection/

Best regards,

Marc-André Moreau

avatar

After adding the KDC proxy, I'm getting this error: [CredSSP] CredSSP Caused by: InvalidToken: ASN1 DER error: TruncatedData

avatar

This cryptic error is a symptom that the outgoing connection from Devolutions Gateway to the KDC server has failed. We've improved this error handling in the next release with a better error message.

The KDC server can be formatted as a URL, maybe try being explicit, here's what it looks like for my lab environment:

Server: tcp://IT-HELP-DC.ad.it-help.ninja:88
Realm: ad.it-help.ninja

Also make sure you're using the correct Kerberos realm. If it still fails I would recommend looking at the logs in Devolutions Gateway to catch the outgoing connection failure.

Best regards,

Marc-André Moreau