Solved

Delegation From Server 2012 IIS 8.5 to SQL  2012

Posted on 2015-01-15
5
296 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 81

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 50

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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…
A procedure for exporting installed hotfix details of remote computers using powershell
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

739 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