Practical way to authenticate a windows user to AD

  • Thread starter Thread starter Michael Morisoli
  • Start date Start date
M

Michael Morisoli

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
 
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.

--
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.
 
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
 
Back
Top