Answer the question
In order to leave comments, you need to log in
IIS - Is anonymous and Windows authentication possible on the same site at the same time?
Good afternoon.
There is a site on IIS 8.0 (Windows 2008 r2) to which both anonymous users and domain users should have access. If we enable Windows Authentication on the site, then domain users log in normally, but anonymous users cannot access the site. If we additionally enable anonymous authentication, then everyone can access the site, but domain users are also considered anonymous.
The simplest solution seems to be to have two sites (with windows/anonymous authentication), but in this case there are two hyperlinks to the same logical resource, which is unacceptable for some reason. There must be only one entry point.
It will be enough to resolve this issue for one page of the site (Login.aspx, lies in the root of the site). For the remaining pages of the site, anonymous access by all types of users is acceptable.
What can be done here?
Answer the question
In order to leave comments, you need to log in
I wonder by what criterion should IIS understand when to request a name / password, and when not to request?
Request processing goes like this
Client -> Server -> Need authentication? -> No -> Page to the client
Yes -> Request username and password from the client-> Page to the client
If the username and password are specified in the request, then the step with the request is skipped.
----------------
There are no problems we won't create for ourselves - turn on authentication, make the name anonymous without a password, and paste it into the default login form. Those who just need to log in will log in by changing the name and password, those who can do this will simply press Enter.
As far as I understand, your solution is written in C # using ASP.Net . I
recommend that you study the possibilities of customizing your WebConfig. So it is possible to add appropriate settings indicating the possibility of access to different pages either anonymously or after authentication, as well as for individual users.
Here is a course link with ASP.NET
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question