搜索网络服务中的安全修整

编程入门 行业动态 更新时间:2024-10-10 02:21:43
本文介绍了搜索网络服务中的安全修整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个 Web 应用程序,它使用 SharePoint 2007 搜索 Web 服务 (localhost/_vti_bin/search.asmx).我的范围包含多个内容源,它们都包含业务数据(通过外部数据库上的 SQL 查询抓取内容).我需要这些内容源之一来为我提供安全修整的结果.简单来说,我有两个表:

I have a web application which consumes the SharePoint 2007 search web service (localhost/_vti_bin/search.asmx). My scope contains several content sources, all of them contain business data (content is crawled via SQL queries on external databases). I need one of these content sources to provide me security trimmed results. To put it simple, I have two tables:

  • 包含内容的表 A:NodeId、Title、Content
  • 具有权限的表 B:NodeId、用户名

现在,爬虫索引表 A 没有问题.我的问题是,在使用查询 Web 服务进行搜索时,我找不到对结果进行安全修整的解决方案.使用服务帐户使用 Web 服务,不会模拟登录用户.是否有可能以某种方式将用户名传递给 querypacket 对象,或者以任何其他方式检查表 B,用户名是否可以访问 NodeId?

Now, the crawler indexes table A with no problems. My problem is though, that when doing a search with the query web service, I cannot find a solution to do a security trimming of the results. The web service is consumed with a service account, no impersonation of logged in user. Is there a possibility to pass somehow the username to the querypacket object, or any other way that would check the Table B, whether the username has access to the NodeId?

由于我打算迁移到SP2013,如果MOSS2007没有办法,也许你们中的一些人也知道这个Sharepoint版本的解决方案?

Since I'm planning to migrate onto SP2013, maybe some of you also know a solution for this Sharepoint version, if there is no way in MOSS2007?

推荐答案

有 3 个主要选项可用于对 SharePoint 搜索结果进行安全修整.它们包括:

There are a few 3 main options for doing security trimming of SharePoint search results. They include:

  • ISecurityTrimmerPre - SharePoint 2013 中的新增功能.允许在执行搜索查询之前为用户添加其他声明
  • ISecurityTrimmerPost - 在早期版本的 SharePoint 中也称为 ISecurityTrimmer2.允许在执行搜索查询后 1 对 1 的基础上修剪搜索结果
  • Business Connectivity Services 索引连接器 - 允许您在搜索索引器抓取内容源时向它提供 ACL
  • 有大量博客文章展示了如何实施每个选项.

    There is a great set of blog articles that show how to implement each option.

    此外,这里还有关于 自定义安全修整的 SharePoint Conference 2012 会议的精彩视频.

    Also, here's a great video of a SharePoint Conference 2012 session on custom security trimming.

    HTH

    -尤金

    更多推荐

    搜索网络服务中的安全修整

    本文发布于:2023-11-28 19:27:23,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1643664.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:网络服务

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!