VMware Horizon Community
YMS003B
Contributor
Contributor

How to get Authenticated User information?

I am developping custom credential provider for a horizon remote desktop. I need to get authentication informations that is authenticated with Horizon Client on the client side.

Because Horizon don't give authentication informations to the credential provider.

If I use RDP protocol, I can get a user and domain name from WTSQueryInformation(Windows API). But If I use PCoIP or Blast, I can't get none of informations.

I checked "Session Enhancement SDK" and "RDP VC Bridge SDK". But I couldn't find such apis.

Can I get a user name and domain name and password of horizon client on remote(desktop) side?

Is there any SDK that has such functionality?

horizon_logonInfo.png

0 Kudos
2 Replies
BenFB
Virtuoso
Virtuoso

From the machine that is being connected to where the Horizon Agent is installed you can pull the user name and domain name from the registry. Have a look at HKEY_CURRENT_USER\Volatile Environment\1. Your screenshot appears to reference the password field which is not and should not be accessible.

0 Kudos
YMS003B
Contributor
Contributor

Thank you for your reply.

We can't use HKCU because when the Credential Provider is launched, HKCU is not created yet.

HKCU is created after Credential Provider is exited.

When we use RDP, OS tell the remote credentials to the Credential Provider.

0 Kudos