I am developing a VB.net application which will be used in 2 different scenarios. In one scenario, users will be accessing the program via Terminal Server and in the other scenario, they will be accessing via Citrix. I'm hoping the same answer will serve for both scenarios, but if not, I need to know what to do in both cases. Here is the question:
For the security I will be building in to the application, I need to capture the user id of the person accessing the application. I know how to do that if a program is accessed directly from a user workstation, but I don't know how to do it when several users will be accessing the application after they have logged in, via TS in one case and Citrix in the other, to the machine where the application resides. I need to capture the active directory user id of the individual. Is there a way to accomplish this?