Windows Authentication User receives request - ASP.NET

I have the following settings:

Web.config

Authentication Mode = "Windows"

Virtual Directory -> Enable Anonymous Access - UNCHECKED -> Integrated Windows Authentication - CHECKED

When the user goes to the default page on the intranet, they will be asked to enter the username and password, even if they have already authenticated

** UPDATE: To clarify what I'm doing - We have an application that is configured to authenticate windows = forms - There was a request that for certain servers on the intranet we would like to bypass the login.aspx page - Everything that the login page does. aspx, grabs the Windows username, checks the database, gets the username and password of the form and allows the user to log in - I use User.Identity.Name to get the Windows username to do the mapping

**

+3
source share
6 answers

Also make sure that when you browse the site in Internet Explorer, the zone in the status bar says "Intranet zone." Otherwise, it will not log into the system by default.

+1
source

?

<identity impersonate="true" />
+4

. , , .

+1

, Kerberos 2 . Kerberos/NTLM, AD , .

0

, , aspx IIS?

0

You should use Internet Explorer as a client, if you want to avoid logging in at all.
In addition, as David noted, the site must be in the Intranet zone for IE to automatically send Windows credentials. A site will be located in the Intranet zone if it uses a single-word server name. Otherwise, you must add it to the list of sites. See Internet settings in windows.

Firefox will ask you for credentials (but they can be autocomplete).

0
source

Source: https://habr.com/ru/post/1704603/


All Articles