Share via


Peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode:Stsadm 屬性 (Office SharePoint Server)

描述

指定當目前的連接埠使用表單型驗證時,不要搜尋 Active Directory。

例如,Web 應用程式在連接埠 80 上使用 Windows 驗證,並在連接埠 81 上使用表單型驗證。若使用者存取連接埠 81 並嘗試搜尋,在使用 [人員選擇] 的情況下,會傳回結果。

語法

stsadm -o setproperty

-propertyname peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode

-propertyvalue {Yes | No}

[-url] <URL>

getproperty 作業的語法為:

stsadm -o getproperty

-propertyname peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode

[-url] <URL>

注意

您可使用 -pn 替代 -propertyname,而以 -pv 替代 -propertyvalue

下表顯示可能的值。

名稱

propertyname

取得或設定屬性名稱。

propertyvalue

Yes:[人員選擇] 只會從成員資格提供者進行搜尋。

No:[人員選擇] 會從成員資格提供者以及 Windows Active Directory 進行搜尋。

url

Web 應用程式的 URL 路徑一般會使用 http://*server_name* 格式。

範例

使用 Windows 驗證來搜尋成員資格提供者

目前的連接埠使用表單型驗證時,不要搜尋 Windows Active Directory。

若只要從成員資格提供者進行搜尋,請使用下列語法:

stsadm -o setproperty -url http://<server> -pn "peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode" -pv yes

若要從成員資格提供者以及 Windows Active Directory 進行搜尋,請使用下列語法:

stsadm -o setproperty -url http://<server> -pn "peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode" -pv no

注意

如果該值設為 Yes,[人員選擇] 就不會嘗試對 Active Directory 進行搜尋或解析使用者 (如果目前的區域不使用 Windows 驗證的話)。

若要檢視 nowindowsaccountsfornonwindowsauthenticationmode 屬性目前的設定,請使用下列語法︰

stsadm -o getproperty -pn peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode