Hello everyone.I have a VS 2005 (C#) windows application.when i run the application i want to authenticate the current login username and password with possibly the windows LoginAPI.can any one help me with a C# code.
Multiple users will be using the same desktop to login to my .Net application. I don't want to force the users to log out of the desktop everytime there is a new user, as this will take a long time to relogin to windows.
Here is what I'm looking to do (Preferably in C# and NO web services):
Presente the user with a form to enter their username and password
Authenticate these users against a windows XP
Use the Authentication token returned from Windows XP for verification and validation.
Assumptions:
the users will have separate accounts setup on Windows XP.
Can neone suggest how to use the PromptForCredentials class to validate the user and prompt the PromptForCredentials dialog ..i have gone thro the msdn but its not clear actaully.Can neone tell me the namespace to be used.
Multiple users will be using the same desktop to login to my .Net application. I don't want to force the users to log out of the desktop everytime there is a new user, as this will take a long time to relogin to windows.
Here is what I'm looking to do (Preferably in C# and NO web services):
Presente the user with a form to enter their username and password
Authenticate these users against a windows XP
Use the Authentication token returned from Windows XP for verification and validation.
Assumptions:
the users will have separate accounts setup on Windows XP.
Can neone suggest how to use the PromptForCredentials class to validate the user and prompt the PromptForCredentials dialog ..i have gone thro the msdn but its not clear actaully.Can neone tell me the namespace to be used.
Last edited: