1
Answer

How to do Windows Authentication (Users in the Intranet) in

r p

r p

11y
1.9k
1

Hi,

I am developing an MVC3 application. It will be an Intranet System andauthenticate using Windows.

If a user belongs to the NetWork of the Company Building; the usershould be Authenticated and allowed to see the pages.

1. What kind of authentication should I use?

2. I am using IIS6 in my hosting server, what changes should I make there?

3. Any sample MVC3(C#) will be helpful as well?

I did as it says in "To configure the Visual Studio Development Server for Windows Authentication" of 

 msdn.microsoft.com/en-us/library/gg703322(v=vs.98).aspx and then I set my web.config -     <authentication mode="Windows">.

It works for my local machine.

When I run the project it asks for my Windows account details. B

ut, after I moved to my Test Server (IIS6), when I ran the project, it  DOES NOT ask for account details or it DOES NOT login by default.

Thanks very much

Answers (1)