Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the following setup:

  • ServerA, a web server with an asp.net mvc site
  • ServerB, a web server with an asp.net Web Api service

The MVC site on ServerA consumes the Web Api service on ServerB. Users log into the MVC site but certain service methods in the Web Api require that the user is in a particular role etc so I need to be able to authenticate the user at the Web Api level.

For this reason, I have tried to set up Kerberos. ServerA has been trusted for delegation. The MVC website is running under a network user account (we'll call it ServiceAccount here) which has been set for delegation. I have set up an SPN for this. However, all requests from the MVC site to the Web Api show that the user is ServiceAccount and not the actual logged in user of the MVC site.

Information around Kerberos seems fragmented so I'm struggling to find a solution. Has anyone got any ideas what may be wrong here?

Thanks

share|improve this question
    
Lots of good info on troubleshooting Kerberos auth on asp.net here: serverfault.com/questions/172754/… –  Trondh Sep 26 '13 at 9:18
    
Have you tried setting useAppPoolCredentials =true? blogs.technet.com/b/proclarity/archive/2011/03/08/… –  Greg Askew Sep 26 '13 at 9:26

1 Answer 1

After getting nowhere with this I eventually found the following article: http://blogs.msdn.com/b/canberrapfe/archive/2012/01/02/kerberos-troubleshooting.aspx in particular the instuctions in "Section 5". This describes how to set up a very basic test to troubleshoot Kerberos double hops which has helped me to get my own set up working.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.