Use the LogonUser or LogonUserEx api function.
Once you do this, you can create a WindowsIdentity object and a
WindowsPrincipal object from the token, and subsequently attatch the
WindowsPrincipal to the main thread of your application.
If you do a search on these words, you should find a few good samples on the
web.
-Rob Teixeira [MVP]
"ram" <ram (AT) discussions (DOT) microsoft.com> wrote
Quote:
how do I implement windows authentication in a winform app?
I am developing a winform app with a login screen, where the user would
enter their NT domain name, user id and password. these should be validated
|
and then used elsewhere in the application.
Quote:
different users share the computer where the application is installed.
thanks! |