I have some issues trying to create a web application under windows security.
Scenario
One server with IIS and a different remote SQL Server. All users from the network should be able to use the application using their active directory credentials.
Following this documentation:
Connection string:
<connectionStrings>
<add name="TESTODSEntities"
connectionString="metadata=res://*/Models.EntityModel.TESTODSEntityModel.csdl|res://*/Models.EntityModel.TESTODSEntityModel.ssdl|res://*/Models.EntityModel.TESTODSEntityModel.msl;
provider=System.Data.SqlClient;
provider connection string="
data source=TestServer;
initial catalog=TEST_ODS;
persist security info=False;
Trusted_Connection=Yes;integrated security=True;
MultipleActiveResultSets=True;
App=EntityFramework""
providerName="System.Data.EntityClient" />
</connectionStrings>
web.config:
<identity impersonate="true"/>
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
IIS Configuration
ApplicationPool properties:
Identity --> ApplicationPoolIdentity
Load UserProfile --> True
Application's options:
Authentication:
ASP.NET Impersonation: Enabled
Basic Authentication: Enabled
Windows Authentication: Disabled <--According to documentation this has to be disabled when IIS and SQL are in different servers.
I created the test page as suggested by the documentation and this is the result:
Test database Current user: Domain\testuser | System user: AD\testuser
Current user IIS User: Domain\testuser - Will flow across the network: False
InteractiveSid: False
BatchSid: False
ServiceSid: False
The user is known, but this three WellKnownSidType are false and therefore "Will flow across the network" is also false
Already checked:
Web App getting Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' Possible Connection String Issue?
Login Failed for user Domain\MachineName$ on IIS 7.5 with an ApplicationPoolIdentity
Any suggestion?