Skip to content

Conversation

@TheBestTvarynka
Copy link
Collaborator

Hi,

Previously, only FQDN usernames (username@domain) were suitable for smart card logon. I added support for regular credentials (when username and domain are separate parameters) in smart card credentials handling.

Why?

In short, because of FreeRDP. More comprehensive explanation:
Unfortunately, FreeRDP does not split FQDN username into username and domain parts before sending credentials in the last CredSSP TsRequest message. Example of bad credentials:

image

(link to bad credentials)

The target machine is unable to verify such credentials and shows an error.

Correct credentials should look like this:

image

(link to good credentials)

So, instead of using FQDN in FreeRDP CLI command (./sdl-freerdp /u:t2@tbt.com ...), I started using username + domain (./sdl-freerdp /u:t2 /d:tbt.com ...).

I am not sure how convenient it is. Maybe we should patch FreeRDP in the future and improve FQDN handling. But for now, it works with this fix and I think it is good 😃

@TheBestTvarynka TheBestTvarynka self-assigned this Sep 4, 2025
Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 💯

At least it will work on older versions of FreeRDP too 😉

@CBenoit CBenoit changed the title feat(ffi): accept regular credentials for smart card logon fix(ffi): accept regular credentials for smart card logon Sep 5, 2025
@CBenoit CBenoit merged commit 1e4e9d8 into dev/macos-scard-support Sep 5, 2025
42 checks passed
@CBenoit CBenoit deleted the feat/accept-down-level-logon-creds-for-scard-logon branch September 5, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants