Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2005

Tip: Looking for answers? Try searching our database.

Practical way to authenticate a windows user to AD

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Morisoli - 01 Feb 2005 20:15 GMT
I have been doing mostly ASP.NET work over the last year and have forgotten
how to do some basic things in Windows .NET apps.

I am looking for a practical method to authenticate a user from a windows
form against our Active Directory network.  Its so easy in ASP.NET, but I
seem to have brain fade on how to do this with a fat client app.

Help, pointers, suggestions are all welcome at this point.

Thanks, Mike
Tom Krueger [MSFT] - 11 Feb 2005 23:03 GMT
Hello,

A better news group would be the ASPNET new group. Anyway, it's been a while
since I have done a web app as well, however, if my memory serves me corret
you need to look at the web.config file.  You need to set the authentication
mode to "windows".  I believe that is the default.  The other thing is you
will need to set the security on the Virtual Directory in IIS so that it is
not allowing Anonymous Access.

Control Panel | Administrative Tools | Internet Information Services
Right click on a virtal directory | select properties
Select Directory Security Tab
Click Edit
Uncheck Allow Anonymous Access

After doing this, users should get prompt to login and they will need an
Windows User Account.

Hope my memory has not failed and this helps you out.

Signature

Tom Krueger

My Blog - http://weblogs.asp.net/tom_krueger
Smart Client DevCenter - http://msdn.microsoft.com/smartclient/
Mobile DevCenter - http://msdn.microsoft.com/mobility

This posting is provided "as is" with no warranties and confers no rights.

>I have been doing mostly ASP.NET work over the last year and have forgotten
> how to do some basic things in Windows .NET apps.
[quoted text clipped - 6 lines]
>
> Thanks, Mike
Michael Morisoli - 16 Feb 2005 18:26 GMT
Tom, thanks for the reply.  I know how to do it in ASPNET, the question is
how to do it in a Windows Form, thus the post to this area.

Mike

> Hello,
>
[quoted text clipped - 26 lines]
> >
> > Thanks, Mike

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.