SharePoint【学习笔记】-- SharePoint Windows认证模式下 限制人员选取器能访问OU

http://207.46.16.252/zh-cn/library/gg602066.aspx#section5

1效果:只能查询到某个特定的OU,并且不在此OU内的域用户会被拒绝访问(在设置OU前就访问过的其他OU的域用户还是可以访问门户和被选择器查询到的)

查看当前状态:发现没设置

stsadm -o getsiteuseraccountdirectorypath –url http://ServerName

设置:

stsadm -o setsiteuseraccountdirectorypath -path "OU=Sales,DC=ContosoCorp,DC=local" –url http://ServerName

设置后查看:

stsadm -o getsiteuseraccountdirectorypath –url http://ServerName

取消设置

stsadm -o setsiteuseraccountdirectorypath -path "" -url http://ServerName

取消后查看

stsadm -o getsiteuseraccountdirectorypath –url http://ServerName

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

2效果:能查询多个特定OU

应该可以使用筛选器,我没试过

使用 LDAP 查询筛选 Active Directory 帐户

Stsadm –o setproperty –pn peoplepicker-searchadcustomfilter -pv <LDAP 查询筛选器> -url <Web 应用程序 URL>

posted @ 2013-02-21 15:26  绿森林  阅读(173)  评论(0编辑  收藏  举报