?
Solved

Delegation From Server 2012 IIS 8.5 to SQL  2012

Posted on 2015-01-15
5
Medium Priority
?
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 82

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 51

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
I have a large data set and a SSIS package. How can I load this file in multi threading?
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

752 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