简体   繁体   English

如何区分本地用户和域用户,这些用户是我的凭据提供程序的登录屏幕上缓存的磁贴

[英]How to differentiate between a local user and domain user that are cached tiles on login screen from my credential provider

I am developing a credential provider in windows and in the credential provider I am invoking another.exe and I need to pass username as argument in UPN format ie for local user: user@machineName and for domain user: user@domainName .我正在 windows 中开发凭据提供程序,在凭据提供程序中我正在调用 another.exe ,我需要以UPN格式将用户名作为参数传递,即local user: user@machineNamedomain user: user@domainName Here the problem is for cached tiles on login screen in windows, how can I know if the cached user trying to login from my credential provider is domain user or local user?这里的问题是 windows 中登录屏幕上的缓存磁贴,我如何知道尝试从我的凭据提供程序登录的缓存用户是域用户还是本地用户?

I figured out that I am getting the domain name along with user name in _pszQualifiedUserName in the flat name format ie Domain\username in GetSerialization() which should help me to differentiate between domain and local user.我发现我在_pszQualifiedUserName中以平面名称格式获取域名和用户名,即GetSerialization()中的Domain\username ,这应该有助于我区分域用户和本地用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM