I'm trying to set up the following scenario. I have 3 servers, they are all in same domain.
- Server A has web application which runs under (domain) service account, dom\web.
- Server B has instance of SQL Server 2008 R2 which runs under (domain) service account, dom\sql.
- Server C has instance of SQL Server 2008 R2 which runs under (domain) service account, dom\sql.
Servers B and C are in SQL Cluster. Instances of B and C are linked servers.
When I run SQL Server Management Studio from A and connect to B using my domain account (dom\usr) I try to execute the query which selects data from B and C and it works.
When I try web application which tries the same I get the error:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
I see that connection in SQL has auth_scheme KERBEROS for user dom\web so it's not NTLM.
Also, dom\web domain account doesn't have selected "account is sensitive and cannot be delegated" option in AD.
I also think that SPN is correctly set up because double hop wouldn't work in the first case.
This is error on server C:
Source Logon
Message Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Reason: Token-based server access validation failed with an infrastructure error. Check for previous errors. [CLIENT: 10.65.10.53]
Source Logon
Message Error: 18456, Severity: 14, State: 11.