I have one big headache of a problem here! I can't seem to figure this out.
I have 2 servers. 1 has IIS and the other has SQL. I want a user to go to my website (from inside the company.. Intranet), use Integrated windows authentication to access the website which in turn impersonates this user and connects to SQL Server.
I have anonymous access disabled, Integrated Windows Authentication is enabled.
Both these options are set in the Web.config
The user is impersonated correctly on the IIS server; however, when it goes out to the SQL server it tries to authenticate as NT AUTHORITY\ANONYMOUS LOGON. I do not want this, I want the users identity to flow through to the SQL Server using impersonation. What am I doing wrong?
Thanks
I have 2 servers. 1 has IIS and the other has SQL. I want a user to go to my website (from inside the company.. Intranet), use Integrated windows authentication to access the website which in turn impersonates this user and connects to SQL Server.
I have anonymous access disabled, Integrated Windows Authentication is enabled.
Both these options are set in the Web.config
Code:
<authentication mode="Windows />
<identity impersonate="true" />
The user is impersonated correctly on the IIS server; however, when it goes out to the SQL server it tries to authenticate as NT AUTHORITY\ANONYMOUS LOGON. I do not want this, I want the users identity to flow through to the SQL Server using impersonation. What am I doing wrong?
Thanks