Dynamics CRM in the Field

Information from the Microsoft Dynamics CRM PFE team working in the field

CRM 2011 Service Principal Names (SPN) generation and usage

CRM 2011 Service Principal Names (SPN) generation and usage

  • Comments 6

When we implement CRM 2011 we always hear or read the term Service Principal Name (SPN) for accurate Kerberos Authentication; however, sometimes understanding Kerberos Authentication is time consuming and needs experience.

Sean has written a detailed blog explaining Kerberos Authentication here.

Identifying the right SPNs can be daunting and it would be really nice if we had a simpler way to identify them.  To make SPN identification easier I have put together an excel workbook which could help us generate a list for different deployment schemes.  The Workbook has different sheets covering most common scenarios like Single Server Deployment and Split Server Deployments. (see attached worksheet below)

Please feel free to post your feedback to improve the workbook so we can accommodate more deployment scenarios.

Thanks
Kaustubh Giri

Microsoft Premier Field Engineer

Attachment: Setup SPNs.xlsx
  • How does the SPN requirement change if Kernel Mode Authentication is used?

    Thanks,

    Rocky.

  • Rocky:

    Kernel mode authentication can be used along with Kerberos. It is a good idea to use Kernel Mode Authentication as it was designed to help; however, you must make a change in ApplicationHost.config file.

    If you do not have the useAppPoolCredentials="true" entry in your ApplicationHost.config file it may default the Authentication to Network Service. The SPN's registered on the Domain Account to run CRMAppPool may be ignored as Network Service will be used to create the initial connection before impersonating the user. In that case the SPN it will look for is ComputerName$ and it may or may not cause authentication issues.

    It is advised to modify the ApplicationHost.config file with useAppPoolCredentials="true" entry when Kernel Mode Authentication is enabled on the website.

    I hope that answers your question.

  • Nice article:)

  • Thank you very much for your SPN-sheet. This is helping us forward for many CRM Setups now. The only SPN missing from the sheet is the HTTP-SPN for the SSRS-SvcAccount pointing to the SSRS-Server. Maybe you want to include this in a further release. :-)

  • Is it Ok if we turn off the Kernel mode authentication and run app pool on domain account. Do we need to set SPNs in that scenario as well?

  • @Thomas Linter: Thanks. I will work on in the next release.

    @Betty: You may turn it off; however, not recommended. Requirement of SPN depends on the type of a setup you have. If you have your AppPool running as Network service and your URL's are computer name you may not need SPN. I think I have covered most of the scenarios in my SPN spreadsheet.

    Ref: technet.microsoft.com/.../dd573004(v=office.13).aspx

    To all, I recommend enabling KernelMode, modify ApplicationHost config file and add useAppPoolCredentials="true" and setup correct/ necessary SPN's.

    Hope that helps. :)

Page 1 of 1 (6 items)
Leave a Comment
  • Please add 7 and 5 and type the answer here:
  • Post