Solved

Delegation From Server 2012 IIS 8.5 to SQL  2012

Posted on 2015-01-15
5
256 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 46

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

911 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

19 Experts available now in Live!

Get 1:1 Help Now