• 【转】Reports SPN/SSPI Problems


    转载:http://www.dynamicsmonster.com/blogs/post/CRM-2015-Reports-SPN-SSPI-Problems/

    Running a report on CRM and if you fin an error message similar to this:

    Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'DSMain'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
    Microsoft.Crm.CrmException: An unexpected error occurred.
    System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception.
    System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception.
    System.ComponentModel.Win32Exception: The target principal name is incorrect --->

    报表日志目录:

    D:Program FilesMicrosoft SQL ServerMSRS13.MSSQLSERVERReporting ServicesLogFiles
    

    It means the CRM App Pool service account SPN is not configured properly and usually the fix is the one described below:
    On the CRM App Server run the following commands:

    • setspn -a HTTP/[Crm App Server Name] [Domain]CRMAPP_Account
    • setspn -a HTTP/[Crm App Server FQDN] [Domain]CRMAPP_Account

    The Crm App Server FQDN might be something like CrmAppServerName.domain.com or something slightly different, so you'll need to figure this out for your specific environment. For example, if your server name is CrmAppServer and your domain is FooDomain.local you will have something like the following:

    • setspn -a HTTP/CrmAppServer FooDomainCRMAPP_Account
    • setspn -a HTTP/CrmAppServer.FooDomain.local FooDomainCRMAPP_Account

    After, if SQL also runs under a domain account we'll need to log onto the SQL server and run the following commands for the SQL account:

    • setspn -a MSSQLSvc/[SQL Server Name]:1433 [Domain]SQL_Account
    • setspn -a MSSQLSvc/[Sql Server FQDN]:1433 [Domain]SQL_Account

    Hope it helps.

  • 相关阅读:
    07-selenium、PhantomJS(无头浏览器)
    06爬虫-异步协程
    Numpy数值类型与数值运算-03
    05爬虫-requests模块基础(2)
    初识Matplotlib-01
    03爬虫-requests模块基础(1)
    Django安装与简单事例-02
    JavaWeb学习总结(二):Http协议
    Tomcat学习总结(一):目录简介
    Web服务器学习总结(一):web服务器简介
  • 原文地址:https://www.cnblogs.com/cndota2/p/12306621.html
Copyright © 2020-2023  润新知