自定义 MOSS 人员选取器 (PeopleEditor) 控件

发布于 2024-08-04 01:25:23 字数 139 浏览 11 评论 0原文

我已修改 MOSS 2007 配置以成功查询给定的目标 AD。我想在 PeopleEditor 控件中显示一些自定义 LDAP 字段(例如国家/地区)并允许用户搜索这些字段。有人可以向我指出有用的资源/教程来展示如何做到这一点吗?

谢谢,魔术安迪。

I have modified my MOSS 2007 configuration to query a given target AD successfully. I would like to show some custom LDAP fields (such as country) in the PeopleEditor control and allow users to search against these fields. Can someone point me towards useful resources/tutorials showing how to do this?

Thanks, MagicAndi.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

や三分注定 2024-08-11 01:25:23

您需要继承 EntityEditor 控件(就像 PeopleEditor 一样)并编写自己的查询和验证。

一些背景(阅读社区内容):

随着这些链接并仔细研究 PeopleEditor 控件与 Reflector,另一个很好的资源是Igor Kozlov 的这篇博文MSDN 上有一个不太详细但仍然有用的示例

我正在开发一个 CodePlex 项目,该项目从人员选择器中查询任何给定的 Active Directory。它有很好的文档记录,并结合了网络上各种参考文献的技术(当然要给予认可)。希望它也能帮助别人!

You need to inherit from the EntityEditor control (just as PeopleEditor does) and write your own queries and validation.

Some background (read community content):

Along with these links and carefully studying the PeopleEditor control with Reflector, another good resource is this blog post from Igor Kozlov. There's a less detailed but still useful example on MSDN here.

I'm working on a CodePlex project that queries any given Active Directory from a people picker. It's well documented and combines techniques from the various references out on the web (giving credit of course). Hope it helps someone as well!

悍妇囚夫 2024-08-11 01:25:23

第一步应该是将 AD 中的字段映射到 SharePoint 用户配置文件中的属性。您可以在共享服务提供商的配置中执行此操作(“管理中心”>“共享服务”>“用户配置文件和属性”)。

您可以在此处添加一个新属性并定义应将哪个 AD 字段映射到它。您还可以定义哪些字段允许用户覆盖(但仅限在 SharePoint 中,这只是一种单向同步)以及哪些字段是只读的。

博客文章 演示如何配置 SharePoint 搜索,以便能够通过用户配置文件中的自定义属性搜索用户。

我希望这能为您指明正确的方向。

A first step should be to map the fields form the AD to a attribute in the SharePoint user profile. You can do this in the configuration of the Share Service Provider (Central Administration > Shared Services > User Profiles and Properties).

There you add a new attribute and define which AD field should be mapped to it. You can also define which fields the users are allowed to override (but only in SharePoint, it's only a one ways synchronization) and which one are read only.

This blog post shows how to configure the SharePoint search to be able to search users by a custom attribute in the user profile.

I hope this will point you into the right direction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文