c# - How do I get the Current User identity for a VPN user in a Windows forms app? -


We are currently developing a Windows SmartClient that requires users to authenticate to use their ad group membership is.

Now we need some users to join VPN. Can I get a group from advertising account identity and VPN login anyway?

WindowsIdentity.GetCurrent () returns local user accounts instead of their VPN account information.

The local account name is different that the advertising account is used for the VPN connection. Ie the user is on their home PC, and the advertising account to connect to the office by using their work.

If their computer is in the domain and they log in under their advertising credentials, you are good WindowsIdentity.GetCurrent () will return true. If you are in the VPN network but not in AD, then you are out of luck. Try to run your program as an AD account. If you certify correctly in the "run as" dialog, then WindowsIdentity.GetCurrent () should be correct.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -