Partager via


Peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode : propriété Stsadm (Office SharePoint Server)

Mise à jour : 2007-09-13

Description

Specifies not to search Active Directory when the current port is using forms-based authentication.

For example, a Web application uses Windows authentication on port 80 and uses forms-based authentication on port 81. If a user accesses port 81 and attempts a search, results are returned when People Picker is used.

Syntax

stsadm -o setproperty

-propertyname peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode

-propertyvalue {Yes | No}

[-url] <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

-propertyname peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode

[-url] <URL>

NoteRemarque :

You can substitute -pn for -propertyname and -pv for -propertyvalue.

Values

The following table shows possible values.

Name Value

propertyname

Gets or sets the name of the property.

propertyvalue

Yes: People Picker only searches from the membership provider.

No: People Picker searches both the membership provider and the Windows Active Directory.

url

Typically, a path to the URL of the Web application, in the form http://*server_name*.

Examples

Search membership providers using Windows authentication

Do not search Windows Active Directory when the current port is using forms-based authentication.

To search from a membership provider only, use the following syntax:

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

To search a membership provider and Windows Active Directory, use the following syntax:

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

NoteRemarque :

If the value is set to Yes, the People Picker does not try to search or resolve a user against Active Directory if the current zone does not use Windows authentication.

To view the current setting for the nowindowsaccountsfornonwindowsauthenticationmode property, use the following syntax:

stsadm -o getproperty -pn peoplepicker-nowindowsaccountsfornonwindowsauthenticationmode