Hi everyone,
I am trying to find a way to provide windows authentication in my C# forms project. I have found a couple of tutorials, including one here on Code Project, but they fail to satisfy my precise requirements in one fundamental way: they all work by testing a text box username / password against the current logged in user. My problem is that I want to be able to authenticate any user that has a valid Windows account. The reason for this is that I want to restrict some administration functionality in my project to certain known individuals and I'd like to do it by testing their Windows credentials because it means they can use their regular workstation login credentials and I don't have to concern myself with creating a separate, secure credentials database. The approved individuals would not be logged in to the machine that the project is running on - the project runs on a standard user account and can be accessed by anyone.
Okay, so I could implement a solution that involves them having to log into the target workstation first and then use the regular solutions I've found on here and elsewhere. But it's an extra layer of hassle for the administrators that if possible I'd like to avoid.
Is this even possible? I am lead to believe that it is primarily because here at work we use SVN to manage our code and the Tortoise SVN UI authenticates us using our standard Windows credentials, and I can do that regardless of whether or not I am the currently logged in user on the machine.
If someone is able to point me in the direction of a useful information source for this problem I would very much appreciate it.
Thanks in advance,
Brian