设为首页 收藏本站
查看: 817|回复: 0

[经验分享] Configuring Kerberos for SharePoint 2007: Part 2

[复制链接]

尚未签到

发表于 2019-2-5 06:49:41 | 显示全部楼层 |阅读模式
Configuring Kerberos for SharePoint 2007: Part 2 - Excel Services and SQL Analysis Services
This is the second of my several-part series on how to configure Kerberos for MOSS 2007. In the first article, I outlined the steps that are required in order to get Kerberos working for a basic MOSS installation. In this article I am going to address one of the most common scenarios that actually requires Kerberos in order to work; that is using Excel Services to display data from a SQL Analysis Services Cube (or a normal SQL database) via SharePoint.
Why does this scenario require Kerberos?
As outlined in part 1 of this series, Kerberos is required whenever something in SharePoint needs to access another service on the user's behalf (i.e. "double hop"), this scenario does exactly that. The spreadsheets that are hosted by Excel Services will need to access a SQL server in order to get the information that is required. This is a double-hop and unless Kerberos is enabled, you will get errors in your Excel Services Webparts.
Step 1: Configure Kerberos for MOSS
The first step in configuring this scenario is to get your base MOSS configuration sorted. Follow the steps in my first article to do this (Configuring Kerberos for SharePoint 2007: Part 1, Base Configuration for SharePoint).
Step 2: Configure Permissions in SQL AS
This section specifically relates to using SQL Analysis Services, but similar steps will be required for normal SQL or Reporting Services.
In order that users can access your SQL AS cube, you need to configure permissions inside SQL Management Studio. Follow these steps:

  • Open SQL Management Studio
  • Connect to Analysis Services
  • Right-click on the server level and go to properties
  • Go to the Security tab
  • Give the relevant users access. If you want everyone to have access, add 'authenticated users'
This will means that user have access to actually read the data from eth AS cube
Step 3: Configure Excel Services for Delegation
One of the key things that people get caught out with on when attempting this scenario is configuring Excel Services to use Delegation (i.e. to use Kerberos rather than NTLM). This is a setting that you can only set by using STSADM.exe; you cannot set it through the SharePoint Administration pages and it is not well documented. The discussion thread outlines this step: http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1224539&SiteID=17
Follow these steps:

  • On your SharePoint server, open a command prompt and navigate to c:\program files\common files\microsoft shared\web server extensions\12\bin
  • Run the following command where %SSPNAME% is the name of your Shared Service Provider:

    • stsadm.exe -o set-ecssecurity -ssp %SSPNAME% -accessmodel delegation

  • Now run the following command:

    • stsadm.exe -o execadmsvcjobs

  • Now perform and IISRESET
Step 4: Create your Data Connection file
Now Excel Services has been configured, you need to make sure that the data connection has the right settings for Kerberos. Typically in this scenario, a data connection file will be created and stored in a SharePoint data connections library. This ensures that you only have to set the data connection up once and use it many times.
There are several key settings that must be in the data connection file in order for Kerberos to work, these include using the FQDN of the SQL server and adding SSPI=Kerberos to the connection string. Follow these steps:

  • Open Excel 2007 (Client)
  • Go to the 'Data' ribbon
  • In the 'Get external data' area click on 'From Other Sources' and choose 'From Analysis Services'
  • Enter the FQDN of your SQL server here (i.e. server.domain.local, not just server), leave the default of 'Use Windows Authentication' and click Next
  • Choose the database and cube that you wish to connect to and click Next. Click Finish on the following screen.
  • Choose to show a pivot table (this is not relevant and will not be used at this stage) and click OK
  • Once the pivot table is displayed, it is a good idea to test it out to make sure you got the right settings
  • Go to the 'Data' ribbon and click 'Properties'
  • Go to the 'Definition' tab of the connection properties dialog
  • Add ';SSPI=Kerberos' (without the ') at the end of the connection string (after MDX Missing Member Mode=Error)
  • Now Export your data connection to SharePoint by clicking 'Export Connection File'
  • Enter the full URL to the Data connection library that you wish to save you data connection to and click 'Save'.
  • You may now close Excel and disregard the spreadsheet (you have got the data connection in SharePoint which is the bit you need)
Step 5: Configure your site
Now you have created the data connection, you can go ahead and configure your site.
Generally one of the first things to do is to add an 'SQL Server 2005 Analysis Services Filter' webpart which uses the data connection to provide filters to other webparts on your site. This is one of the first places to test Kerberos. When you add the SQL AS Webpart, you will first need to choose the data connection. Upon doing this the Dimension drop-down should populate with dimensions from SQL. If this works then Kerberos is working! J
Useful References
These articles were useful for me when trying to configure this:
Displaying Workbook using external data with periodic refresh in EWA ... this is a good discussion thread on TechNet that talks about some of the Excel Services settings that are required.
How to configure SQL Server 2005 Analysis Services to use Kerberos authentication ... a great MSDN article that covers some of the AS and connection string parameters.
How to use Kerberos authentication in SQL Server ... a very comprehensive article that covers configuring Kerberos for SQL
Published Friday, April 27, 2007 3:58 PM by Martin.Kearn@Microsoft.com

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-671931-1-1.html 上篇帖子: SharePoint Server 2007 Web内容管理中的几个关键概念 下篇帖子: 关于SharePoint解决方案开发模型的凌乱文章…
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表