Solved

Delegation From Server 2012 IIS 8.5 to SQL  2012

Posted on 2015-01-15
5
250 Views
Last Modified: 2015-01-26
I have set up delegation loads of times with wins 2003 but now we are moving to 2012 servers using IIS 8.5 but I cannot get delegation to work. Is there something different.
I have set up to use windows authentication, turned off anonymous, Set impersonate to true
Set up the SPNs but still when I do a post to the SQL server I get a SQL error

Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

Is there something new I have to do or am I missing something

Thanks in advance
0
Comment
Question by:Niall292
  • 3
5 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40552786
when you say post to sql server do you want iis to add/update/query sql server?

Could you show the relevant part of your code that is failing
0
 

Author Comment

by:Niall292
ID: 40552979
No matter what I try  query or insert. If i log on to the web server and run the website from there it works perfectly. That's why I suspect a delegation issue
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 40557358
There's no 'NT AUTHORITY\ANONYMOUS LOGON' user in SQL Server 2012.
You need to give access in SQL Server 2012 for the correct user.
0
 

Accepted Solution

by:
Niall292 earned 0 total points
ID: 40561902
We finally found the problem and it was nothing to do with my code. We have trusted domains and the Web server was in one domain but FQDN was for the other domain

Once it was changed everything worked

Ex. The webserver in GB domain should have been called  webserver.GB.lan but was called webserver.US.lan
once it was changed to proper LAN everything worked
0
 

Author Closing Comment

by:Niall292
ID: 40570198
This took a lot of searching and was something I would never have thought of, only I could not find any problems and had to ask for a network guys help
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Resolve DNS query failed errors for Exchange
OfficeMate Freezes on login or does not load after login credentials are input.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now