Kerberos fails when using CNAME records

9 Jun 2009

If you’re in the middle of implementing Kerberos for something, remember that Kerberos authentication fails whenever you use CNAME records in DNS, instead of A-Records.

Why is this?

This is because whenever for example IE asks AD: “which account has a SPN registration for kerberos.marcvalk.net”, and kerberos.marcvalk.net is an CNAME for IIS_Server.marcvalk.net, the reply will be IIS_Server.marcvalk.net and not the service account.

So you’ll probably see an pop-up authentication box, with a title of IIS_Server.marcvalk.net and not the correct hostheader kerberos.marcvalk.net.

Share This:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • PDF
  • Twitter

2 Responses to Kerberos fails when using CNAME records

Avatar

Doug

August 24th, 2010 at 14:37

Ok, but if your service account is attached to IIS_Server.marcvalk.net, will this then work, or will it not because it doesn’t match the header within the request?

I’m thinking HOSTA.mydomain.com and HOSTB.mydomain.com and a CNAME record for MYDNSNAME.mydomain.com that points to HOSTA.mydomain.com when its up, and switches to HOSTB.mydomain.com when HOSTA.mydomain.com is down.

If each HOSTA.mydomain.com and HOSTB.mydomain.com have independent Kerberos stuff setup, will it work?

Avatar

mvalk

August 27th, 2010 at 15:06

Comment Form