1

在我的 WSS 服务器上,我运行了以下 stsadm 命令来过滤人员选择器结果:

stsadm.exe -o setproperty -url http://myserver -pn "peoplepicker-searchadcu stomfilter" -pv "(memberOf=CN=SharePoint,OU=AccessGroups,DC=contosio,DC=local)"

我的 WSS 站点都被不同的用户组使用。

每当我在 WSS 中创建新网站集时,我想确保我可以过滤人员选择器以仅显示该组的相关用户 - 我可以自动执行此操作还是必须手动执行类似上述 stsadm 命令的操作?

一切顺利

4

2 回答 2

0

不幸的是,peoplepicker- searchadcustomfilter适用于整个 Web 应用程序,即使我在 URL 参数中指定了网站集。

stsadm –o setproperty –propertyname peoplepicker-searchadcustomfilter -propertyvalue "(|(userPrincipalName=*mycompany.com)(memberof=CN=client_users,OU=client_Users,OU=Extranet,DC=client,DC=int))" -url http://myserver/sites/site1 

stsadm -o getproperty -pn peoplepicker-searchadcustomfilter -url http://myserver/sites/site1
stsadm -o getproperty -pn peoplepicker-searchadcustomfilter -url http://myserver/sites/site2

当我运行上述程序时,我希望看到带有自定义 LDAP 查询的 site1 和未应用过滤器的 site2。但相反,我在此 Web 应用程序中的所有网站集上看到了自定义 LDAP 查询。真可惜。

看起来微软需要澄清文档

于 2011-02-25T16:14:37.530 回答
0

You could implement a SPWebProvisioningProvider this is a piece of code which can be run when a new site (based on a specific site definition) is created.

You would need to ensure that your site collection root was using the appropriate site definition.

More info can be found here.

You would need to either implement your stsadm call using the object model, or else wrap the specific call to that command in some custom code.

于 2009-07-27T13:56:51.137 回答