HighTechTalks DotNet Forums  

Re: windows authentication in winform apps ...

Dotnet Security microsoft.public.dotnet.security


Discuss Re: windows authentication in winform apps ... in the Dotnet Security forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Rob Teixeira [MVP]
 
Posts: n/a

Default Re: windows authentication in winform apps ... - 06-23-2004 , 06:39 PM






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!



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.