- Namespace Service Providers
- Legacy GetXbyY Service Providers
- Built-In Default GetXbyY Service Provider
- Adding Windows Authentication Providers Overview collection in the element specifies a unique authentication provider that is used with the Internet Information Services (IIS) 7 Windows authentication module. Compatibility collection was introduced in IIS 7.0. IIS 6.0 The collection replaces the IIS 6.0 NTAuthenticationProviders metabase property. Setup The default installation of IIS 7 and later does not include the Windows authentication role service. To use Windows authentication on IIS, you must install the role service, disable Anonymous authentication for your Web site or application, and then enable Windows authentication for the site or application. After you install the role service, IIS 7 commits the following configuration settings to the ApplicationHost.config file. Windows Server 2012 or Windows Server 2012 R2 On the taskbar, click Server Manager. In Server Manager, click the Manage menu, and then click Add Roles and Features. In the Add Roles and Features wizard, click Next. Select the installation type and click Next. Select the destination server and click Next. On the Server Roles page, expand Web Server (IIS), expand Web Server, expand Security, and then select Windows Authentication. Click Next. . On the Select features page, click Next. On the Confirm installation selections page, click Install. On the Results page, click Close. Windows 8 or Windows 8.1 On the Start screen, move the pointer all the way to the lower left corner, right-click the Start button, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows features on or off. Expand Internet Information Services, expand World Wide Web Services, expand Security, and then select Windows Authentication. Click OK. Click Close. Windows Server 2008 or Windows Server 2008 R2 On the taskbar, click Start, point to Administrative Tools, and then click Server Manager. In the Server Manager hierarchy pane, expand Roles, and then click Web Server (IIS). In the Web Server (IIS) pane, scroll to the Role Services section, and then click Add Role Services. On the Select Role Services page of the Add Role Services Wizard, select Windows Authentication, and then click Next. On the Confirm Installation Selections page, click Install. On the Results page, click Close. Windows Vista or Windows 7 On the taskbar, click Start, and then click Control Panel. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off. Expand Internet Information Services, then World Wide Web Services, then Security. Select Windows Authentication, and then click OK. How To There is no user interface for Windows authentication providers for IIS 7. For examples of how to modify the list of Windows authentication providers programmatically, see the Code Samples section of this document. Configuration Attributes Attribute Description Value Optional String attribute. Specifies the name of the security provider. By default, there are two providers: Negotiate and NTLM. Child Elements Configuration Sample The following default element is configured at the root ApplicationHost.config file in IIS 7.0, and disables Windows authentication by default. It also defines the two Windows authentication providers for IIS 7.0. The following example enables Windows authentication and disables Anonymous authentication for a Web site named Contoso. Sample Code The following code examples will enable Windows authentication and remove the Negotiate provider for a site named Contoso. Поставщики служб конфигурации для ИТ-специалистов Configuration service providers for IT pros Относится к: Applies to Windows 10 Windows 10 Windows10 Mobile Windows 10 Mobile В этой статье рассказывается, как ИТ-специалисты и системные администраторы могут использовать множество параметров, доступных через поставщиков служб конфигурации (CSP), для настройки устройств под управлением Windows 10 и Windows 10 Mobile в своих организациях. This article explains how IT pros and system administrators can take advantage of many settings available through configuration service providers (CSPs) to configure devices running Windows 10 and Windows 10 Mobile in their organizations. CSPs предоставляет параметры конфигурации устройств в Windows 10. CSPs expose device configuration settings in Windows 10. CSPs используются поставщиками служб управления мобильными устройствами (MDM) и документируются в Центре разработчиков оборудования. The CSPs are used by mobile device management (MDM) service providers and are documented in the Hardware Dev Center. Сведения, предоставленные здесь о CSP и документации CSP, также применимы к Windows Mobile 5, Windows Mobile 6, Windows Phone 7 и Windows Phone 8, но ссылки на текущие CSP относятся к Windows 10 и Windows 10 Mobile. The information provided here about CSPs and CSP documentation also applies to Windows Mobile 5, Windows Mobile 6, Windows Phone 7, and Windows Phone 8, but links to current CSPs are for Windows 10 and Windows 10 Mobile. Что такое поставщик служб конфигурации (CSP)? What is a CSP? В клиентской операционной системе CSP — это интерфейс между настройками конфигурации, указанными в документе подготовка, и настройками конфигурации, которые находятся на устройстве. In the client operating system, a CSP is the interface between configuration settings that are specified in a provisioning document and configuration settings that are on the device. CSPs похожи на клиентские расширения групповой политики, поскольку они предоставляют интерфейс для чтения, настройки, изменения или удаления параметров конфигурации для данной функции. CSPs are similar to Group Policy client-side extensions in that they provide an interface to read, set, modify, or delete configuration settings for a given feature. Как правило, эти параметры соединуют с ключами реестра, файлами или разрешениями. Typically, these settings map to registry keys, files, or permissions. Некоторые из этих параметров можно настроить, а некоторые — только для чтения. Some of these settings are configurable, and some are read-only. Начиная с Windows Mobile 5.0, CSPs использовались для управления мобильными устройствами Windows. Starting with Windows Mobile 5.0, CSPs were used to manage Windows mobile devices. На платформе Windows 10 подход к управлению как для настольных, так и для мобильных устройств сходится, с использованием тех же CSP для настройки и управления всеми устройствами под управлением Windows 10. On the Windows 10 platform, the management approach for both desktop and mobile devices converges, taking advantage of the same CSPs to configure and manage all devices running Windows 10. Каждый CSP предоставляет доступ к определенным параметрам. Each CSP provides access to specific settings. Например, Wi-Fi CSP содержит параметры для создания профиля Wi-Fi. For example, the Wi-Fi CSP contains the settings to create a Wi-Fi profile. CSPs стоят за многими задачами и политиками управления для Windows 10, как в Microsoft Intune, так и в поставщиках услуг, не в microsoft MDM. CSPs are behind many of the management tasks and policies for Windows 10, both in Microsoft Intune and in non-Microsoft MDM service providers. Например, в Intune политика, разрешающая поиск рекомендаций в адресной строке Microsoft Edge, использует параметр Браузер/AllowSearchSuggestionsinAddressBarпоставщика служб конфигурации политики. For example, in Intune, the policy to allow search suggestions in the Microsoft Edge address bar uses Browser/AllowSearchSuggestionsinAddressBar in the Policy CSP. CSPs получают политики конфигурации в формате XML-разметки синхронизации (SyncML), оттесненной с сервера управления, совместимого с MDM, например Microsoft Intune. CSPs receive configuration policies in the XML-based Synchronization Markup Language (SyncML) format, pushed from an MDM-compliant management server, such as Microsoft Intune. Традиционные системы управления предприятиями, такие как Microsoft Endpoint Configuration Manager, также могут быть ориентированы на CSP с помощью клиентского средства управления Windows (WMI)-к-CSP Bridge. Traditional enterprise management systems, such as Microsoft Endpoint Configuration Manager, can also target CSPs, by using a client-side Windows Management Instrumentation (WMI)-to-CSP Bridge. Язык разметки синхронизации (SyncML) Synchronization Markup Language (SyncML) Протокол Open Mobile Alliance Device Management (OMA-DM) использует XML-syncML для обмена данными между совместимыми серверами и клиентами. The Open Mobile Alliance Device Management (OMA-DM) protocol uses the XML-based SyncML for data exchange between compliant servers and clients. SyncML предлагает открытый стандарт для использования в качестве альтернативы разрабатываемым отдельными поставщиками решениям, например WMI. SyncML offers an open standard to use as an alternative to vendor-specific management solutions (such as WMI). Польза для корпораций, переходящих на стандартные отраслевые протоколы управления, заключается в том, что это позволяет осуществлять управление более широким набором устройств различных поставщиков с помощью одной платформы (например Microsoft Intune). The value for enterprises adopting industry standard management protocols is that it allows the management of a broader set of vendor devices using a single platform (such as Microsoft Intune). Политики устройств, в том числе профили VPN-соединений, передаются клиентским устройствам в формате, аналогичном SyncML. Device policies, including VPN connection profiles, are delivered to client devices formatted as in SyncML. Получающий эти данные поставщик служб конфигурации считывает эту информацию и применяет необходимые настройки. The target CSP reads this information and applies the necessary configurations. Мост WMI-CSP The WMI-to-CSP Bridge Мост WMI-to-CSP — это компонент, позволяющий конфигурацию CSP Windows 10 с использованием скриптов и традиционного программного обеспечения корпоративного управления, например Configuration Manager с использованием WMI. The WMI-to-CSP Bridge is a component allowing configuration of Windows 10 CSPs using scripts and traditional enterprise management software, such as Configuration Manager using WMI. Мост отвечает за считывание команд WMI и с помощью компонента, называемого общим конфигуратором устройств, передает их поставщику служб конфигурации для приложения на устройстве. The bridge is responsible for reading WMI commands and through a component called the common device configurator pass them to a CSP for application on the device. Почему следует изучить поставщики служб конфигурации? Why should you learn about CSPs? Обычно для настройки устройств и управления ими предприятия используют групповую политику или MDM. Generally, enterprises rely on Group Policy or MDM to configure and manage devices. Для настройки устройств под управлением Windows службы MDM применяются поставщики служб конфигурации. For devices running Windows, MDM services use CSPs to configure your devices. Кроме того, у вас могут быть неуправленные устройства или большое количество устройств, которые необходимо настроить перед регистрацией в управлении. In addition, you may have unmanaged devices, or a large number of devices that you want to configure before enrolling them in management. Также может потребоваться применить настраиваемые параметры, недоступные с помощью службы MDM. You may also want to apply custom settings that aren’t available through your MDM service. Документация по CSP поможет вам понять параметры, которые можно настроить или запросить. The CSP documentation can help you understand the settings that can be configured or queried. Некоторые статьи в библиотеке Windows 10 и Windows 10 Mobile в Technet включают ссылки на применимые справочные темы CSP,такие как интеграция Кортаныв вашем бизнесе или предприятии, которая ссылается на CSP политики . Some of the articles in the Windows 10 and Windows 10 Mobile library on Technet include links to applicable CSP reference topics, such as Cortana integration in your business or enterprise, which links to the Policy CSP. В разделах, посвященных CSP, описываются все доступные параметры конфигурации. In the CSP topics, you can learn about all of the available configuration settings. Поставщики служб конфигурации в конструкторе конфигураций Windows CSPs in Windows Configuration Designer Вы можете использовать Конструктор конфигурации Windows для создания пакетов подготовка для применения параметров к устройствам во время работы вне окна (OOBE) и после настройки устройств. You can use Windows Configuration Designer to create provisioning packages to apply settings to devices during the out-of-box-experience (OOBE), and after the devices are set up. Вы также можете использовать пакеты подготовка для настройки подключения устройства и регистрации устройства в MDM. You can also use provisioning packages to configure a device’s connectivity and enroll the device in MDM. Многие параметры среды выполнения в конструкторе конфигураций Windows зависят от поставщиков служб конфигурации. Many of the runtime settings in Windows Configuration Designer are based on CSPs. Для множества параметров в конструкторе конфигураций Windows на центральной панели отображается документация, которая содержит ссылку на поставщика CSP, если параметр использует его, как показано на следующем изображении. Many settings in Windows Configuration Designer will display documentation for that setting in the center pane, and will include a reference to the CSP if the setting uses one, as shown in the following image. В разделе Пакеты подготовки в Windows 10 объясняется, как использовать конструктор конфигурации Windows для создания пакета подготовки среды выполнения. Provisioning packages in Windows 10 explains how to use the Windows Configuration Designer tool to create a runtime provisioning package. Поставщики служб конфигурации в MDM CSPs in MDM Большинство, если не все, поставщики служб конфигурации доступны через службу MDM. Most, if not all, CSPs are surfaced through your MDM service. Если вы видите поставщика CSP, который предоставляет нужную возможность, и не можете ее найти в службе MDM, обратитесь к поставщику MDM за помощью. If you see a CSP that provides a capability that you want to make use of and cannot find that capability in your MDM service, contact your MDM provider for assistance. Его можно назвать иначе, чем ожидалось. It might be named differently than you expected. Поставщики служб конфигурации, которые поддерживаются MDM, описаны в справочнике по поставщикам служб конфигурации. You can see the CSPs supported by MDM in the Configuration service provider reference. Если поставщик CSP доступен, но не включен явно в ваше решение MDM, вы можете использовать CSP с помощью параметров OMA-URI. When a CSP is available but is not explicitly included in your MDM solution, you may be able to make use of the CSP by using OMA-URI settings. Например, в Intune для развертывания параметров можно применять пользовательские параметры политики . In Intune, for example, you can use custom policy settings to deploy settings. В Intune задокументирован частичный список параметров , которые можно ввести в разделе Параметры OMA-URI пользовательской политики, если служба MDM предоставляет данное расширение. Intune documents a partial list of settings that you can enter in the OMA-URI Settings section of a custom policy, if your MDM service provides that extension. Вы заметите, что в списке не объясняется смысл разрешенных значений и значений по умолчанию, поэтому воспользуйтесь справочной документацией CSP , чтобы найти эти сведения. You’ll notice that the list doesn’t explain the meanings of the allowed and default values, so use the CSP reference documentation to locate that information. Поставщики служб конфигурации в XML-коде блокировки CSPs in Lockdown XML XML-код блокировки можно использовать для настройки устройств под управлением Windows 10 Mobile. Lockdown XML can be used to configure devices running Windows 10 Mobile. Вы можете вручную создать файл XML-кода блокировки , чтобы использовать параметры конфигурации, предоставляемые поставщиком служб конфигурации EnterpriseAssignedAccess. You can manually author a Lockdown XML file to make use of the configuration settings available through the EnterpriseAssignedAccess configuration service provider (CSP). В Windows 10 версии 1703 можно также использовать новое приложение «Конструктор файлов блокировки» для настройки XML-кода блокировки. In Windows 10, version 1703, you can also use the new Lockdown Designer app to configure your Lockdown XML. Как использовать документацию по поставщикам служб конфигурации? How do you use the CSP documentation? Все поставщики служб конфигурации в Windows 10 описаны в справочнике по поставщикам служб конфигурации. All CSPs in Windows 10 are documented in the Configuration service provider reference. В основном разделе CSP указано, какие поставщики CSP поддерживаются в каждом выпуске Windows 10, и представлены ссылки на документацию для каждого отдельного CSP. The main CSP topic tells you which CSPs are supported on each edition of Windows 10, and links to the documentation for each individual CSP. В документации для каждого поставщика CSP используется одинаковая структура. The documentation for each CSP follows the same structure. После введения, где описывается цель CSP, отображается схема с частями CSP в формате дерева. After an introduction that explains the purpose of the CSP, a diagram shows the parts of the CSP in tree format. Полный путь к определенному параметру конфигурации представлен его универсальным кодом ресурса Open Mobile Alliance (OMA-URI). The full path to a specific configuration setting is represented by its Open Mobile Alliance — Uniform Resource Identifier (OMA-URI). URI относителен для корневого узла устройства (например MSFT). The URI is relative to the devices’ root node (MSFT, for example). Возможности, поддерживаемые определенным поставщиком служб конфигурации, можно задать, используя полный путь OMA-URI. Features supported by a particular CSP can be set by addressing the complete OMA-URI path. В следующем примере показана схема для AssignedAccess CSP. The following example shows the diagram for the AssignedAccess CSP. Схема соответствует XML для этого поставщика CSP. The diagram maps to the XML for that CSP. Обратите внимание на различные фигуры на схеме: округлые элементы — это узлы, а прямоугольные элементы — это параметры или политики, для которых должно быть предоставлено значение. Notice the different shapes in the diagram: rounded elements are nodes, and rectangular elements are settings or policies for which a value must be supplied. Элемент на древовидной схеме после корневого узла представляет собой имя CSP. The element in the tree diagram after the root node tells you the name of the CSP. Зная эту структуру, можно распознать в XML-коде части пути URI этого поставщика CSP. Если вы увидите их в XML, вы будете знать, к какому справочнику по CSP следует обратиться. Knowing this structure, you would recognize in XML the parts of the URI path for that CSP and, if you saw it in XML, you would know which CSP reference to look up. Например, в следующем пути OMS-URI для параметров приложения режима киоска можно увидеть, что он использует CSP AssignedAccess. For example, in the following OMS-URI path for the kiosk mode app settings, you can see that it uses the AssignedAccess CSP. Когда элемент на схеме использует italic font, он указывает местообладатель для определенных сведений, таких как ID клиента в следующем примере. When an element in the diagram uses italic font, it indicates a placeholder for specific information, such as the tenant ID in the following example. После схемы в документации приводится описание каждого элемента. After the diagram, the documentation describes each element. Для каждого параметра или политики указаны допустимые значения. For each policy or setting, the valid values are listed. Например, в AssignedAccess CSPэто KioskModeApp. For example, in the AssignedAccess CSP, the setting is KioskModeApp. В документации указано, что значение KioskModeApp — это строка JSON, содержащая имя учетной записи пользователя и идентификатор пользовательской модели (AUMID) приложения в режиме киоска. The documentation tells you that the value for KioskModeApp is a JSON string that contains the user account name and Application User Model ID (AUMID) of the Kiosk mode app. Документация для большинства CSP также содержит пример XML-кода. The documentation for most CSPs will also include an XML example. Примеры CSP CSP examples Поставщики CSP предоставляют доступ к ряду полезных для предприятий параметров. CSPs provide access to a number of settings useful to enterprises. В этом разделе вводится CSPs, которые могут оказаться полезными для предприятия. This section introduces the CSPs that an enterprise might find useful. CSP EnterpriseAssignedAccess позволяет ИТ-администраторам настраивать параметры на устройстве Windows 10 Mobile. The EnterpriseAssignedAccess CSP lets IT administrators configure settings on a Windows 10 Mobile device. Предприятие может использовать этот CSP, чтобы создавать мобильные устройства с одной или ограниченной сферой применения, например наладонное устройство, на котором работает только приложение для проверки цен. An enterprise can make use of this CSP to create single-use or limited-use mobile devices, such as a handheld device that only runs a price-checking app. Помимо обоев экрана, темы, часового пояса и языка, CSP EnterpriseAssignedAccess включает AssignedAccessXml, которые можно использовать для блокировки устройства с помощью следующих параметров: In addition to lock screen wallpaper, theme, time zone, and language, the EnterpriseAssignedAccess CSP includes AssignedAccessXml that can be used to lock down the device through the following settings: включение и отключение центра поддержки; Enabling or disabling the Action Center. настройка количества столбцов плиток на начальном экране; Configuring the number of tile columns in the Start layout. выбор приложений, которые будут доступны на устройстве; Restricting the apps that will be available on the device. выбор параметров, которые будут доступны пользователю; Restricting the settings that the user can access. выбор аппаратных кнопок, которые будут доступны; Restricting the hardware buttons that will be operable. ограничение доступа к контекстному меню; Restricting access to the context menu. включение и отключение операций с плитками; Enabling or disabling tile manipulation. создание конфигураций для определенных ролей. Creating role-specific configurations. CSP политики позволяет предприятию настраивать политики на Windows 10 и Windows 10 Mobile. The Policy CSP enables the enterprise to configure policies on Windows 10 and Windows 10 Mobile. Некоторые из этих параметров политики также можно применять с помощью групповой политики. В документации CSP перечислены соответствующие параметры групповой политики. Some of these policy settings can also be applied using Group Policy, and the CSP documentation lists the equivalent Group Policy settings. Далее описаны некоторые параметры, доступные в поставщике служб конфигурации политики. Some of the settings available in the Policy CSP include the following: Учетныезаписи, например, можно ли добавить к устройству учетную запись, не в microsoft. Accounts, such as whether a non-Microsoft account can be added to the device. Управление приложениями, например разрешено ли только приложениям Microsoft Store. Application management, such as whether only Microsoft Store apps are allowed. Bluetooth, например службы, разрешенные к использованию. Bluetooth, such as the services allowed to use it. Браузер, например ограничение просмотра InPrivate. Browser, such as restricting InPrivate browsing. Подключение, например возможность подключения устройства к компьютеру с помощью USB. Connectivity, such as whether the device can be connected to a computer by USB. Defender (только для рабочего стола), например день и время для сканирования. Defender (for desktop only), such as day and time to scan. Блокировкаустройства, например тип ПИН-кода или пароля, необходимых для разблокировки устройства. Device lock, such as the type of PIN or password required to unlock the device. Опыт, например разрешение кортаны. Experience, such as allowing Cortana. Безопасность, например разрешено ли подготовка пакетов. Security, such as whether provisioning packages are allowed. Параметры, такие как предоставление пользователю возможности изменять параметры VPN. Settings, such as enabling the user to change VPN settings. Начните, например, применяйте стандартный макет «Начните». Start, such as applying a standard Start layout. Система, например разрешение пользователю сбросить устройство. System, such as allowing the user to reset the device. Ввод текста, например разрешение устройству отправлять анонимные образцы данных ввода текста пользователя в Корпорацию Майкрософт. Text input, such as allowing the device to send anonymized user text input data samples to Microsoft. Обновление, например, может ли устройство использовать Microsoft Update, cлужбы Windows Server Update Services (WSUS) или Microsoft Store. Update, such as whether the device can use Microsoft Update, Windows Server Update Services (WSUS), or Microsoft Store. WiFi, например, включен ли общий доступ в Интернет. WiFi, such as whether Internet sharing is enabled. Вот список поставщиков служб конфигурации, поддерживаемых в Windows 10 Корпоративная, Windows 10 Mobile Корпоративная или в обеих системах. Here is a list of CSPs supported on Windows 10 Enterprise, Windows 10 Mobile Enterprise, or both:
- Overview
- Compatibility
- Setup
- Windows Server 2012 or Windows Server 2012 R2
- Windows 8 or Windows 8.1
- Windows Server 2008 or Windows Server 2008 R2
- Windows Vista or Windows 7
- How To
- Configuration
- Attributes
- Child Elements
- Configuration Sample
- Sample Code
- Поставщики служб конфигурации для ИТ-специалистов Configuration service providers for IT pros
- Что такое поставщик служб конфигурации (CSP)? What is a CSP?
- Язык разметки синхронизации (SyncML) Synchronization Markup Language (SyncML)
- Мост WMI-CSP The WMI-to-CSP Bridge
- Почему следует изучить поставщики служб конфигурации? Why should you learn about CSPs?
- Поставщики служб конфигурации в конструкторе конфигураций Windows CSPs in Windows Configuration Designer
- Поставщики служб конфигурации в MDM CSPs in MDM
- Поставщики служб конфигурации в XML-коде блокировки CSPs in Lockdown XML
- Как использовать документацию по поставщикам служб конфигурации? How do you use the CSP documentation?
- Примеры CSP CSP examples
Namespace Service Providers
A namespace provider implements an interface mapping between the Winsock namespace SPI and the native programmatic interface of an existing name service such as DNS, X.500, or NetWare Directory Services (NDS). While a namespace provider supports exactly one namespace, it is possible for multiple providers for a given namespace to be installed. It is also possible for a single DLL to create an instance of multiple namespace providers. As namespace providers are installed, a catalog of WSANAMESPACE_INFO structures is maintained. An application may use WSAEnumNameSpaceProviders to discover which namespaces are supported on a computer.
On WindowsВ Vista and later, an enhanced WSANAMESPACE_INFOEX structure and WSAEnumNameSpaceProvidersEx function are provided.
Legacy GetXbyY Service Providers
Windows Sockets 2 fully supports the TCP/IP-specific name resolution facilities found in Windows Sockets version 1.1. It does this by including the set of GetXbyY functions in the SPI. However, the treatment of this set of functions is somewhat different from the rest of the SPI functions. The GetXbyY functions appearing in the SPI are prefaced with GETXBYYSP_, and are summarized in the following table.
Berkeley Style Functions
SPI function name | Description |
---|---|
GETXBYYSP_gethostbyaddr | Supplies a hostent structure for the specified host address. |
GETXBYYSP_gethostbyname | Supplies a hostent structure for the specified host name. |
GETXBYYSP_getprotobyname | Supplies a protoent structure for the specified protocol name. |
GETXBYYSP_getprotobynumber | Supplies a protoent structure for the specified protocol number. |
GETXBYYSP_getservbyname | Supplies a servent structure for the specified service nam.e |
GETXBYYSP_getservbyport | Supplies a servent structure for the service at the specified port. |
GETXBYYSP_gethostname | Returns the standard host name for the local computer. |
Async Style Functions
SPI function name | Description |
---|---|
GETXBYYSP_WSAAsyncGetHostByAddr | Supplies a hostent structure for the specified host address. |
GETXBYYSP_WSAAsyncGetHostByName | Supplies a hostent structure for the specified host name. |
GETXBYYSP_WSAAsyncGetProtoByName | Supplies a protoent structure for the specified protocol name. |
GETXBYYSP_WSAAsyncGetProtoByNumber | Supplies a protoent structure for the specified protocol number. |
GETXBYYSP_WSAAsyncGetServByName | Supplies a servent structure for the specified service name. |
GETXBYYSP_WSAAsyncGetServByPort | Supplies a servent structure for the service at the specified port. |
GETXBYYSP_WSACancelAsyncRequest | Cancels an asynchronous GetXbyY operation. |
The syntax and semantics of these GetXbyY functions in the SPI are exactly the same as those documented in the API Specification and are, therefore, not repeated here.
The Windows Sockets 2 DLL allows exactly one service provider to offer these services. Therefore, there is no need to include pointers to these functions in the procedure table received from service providers at startup. In Windows environments the path to the DLL that implements these functions is retrieved from the value found in the following registry path. This registry entry does not exist by default:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WinSock2\Parameters\GetXByYLibraryPath
Built-In Default GetXbyY Service Provider
A default GetXbyY service provider is integrated into the standard Windows Sockets 2 run-time components. This default provider implements all of the above functions, thus it is not required for these functions to be implemented by any namespace provider. However, a namespace provider is free to provide any or all of these functions (and thus override the defaults) by simply storing the string which is the path to the DLL that implements these functions in the indicated registry key. Any of the GetXbyY functions not exported by the named provider DLL will be supplied through the built-in defaults. Note, however, that if a provider elects to supply any of the async version of the GetXbyY functions, he should supply all of the async functions so that the cancel operation will work appropriately.
The current implementation of the default GetXbyY service provider resides within the Wsock32.dll. Depending on how the TCP/IP settings have been established through Control Panel, name resolution will occur using either DNS or local host files. When DNS is used, the default GetXbyY service provider uses standard Windows Sockets 1.1 API calls to communicate with the DNS server. These transactions will occur using whatever TCP/IP stack is configured as the default TCP/IP stack. Two special cases however, deserve special mention.
The default implementation of GETXBYYSP_gethostname obtains the local host name from the registry. This will correspond to the name assigned to «My Computer». The default implementation of GETXBYYSP_gethostbyname and GETXBYYSP_WSAAsyncGetHostByName always compares the supplied host name with the local host name. If they match, the default implementation uses a private interface to probe the Microsoft TCP/IP stack in order to discover its local IP address. Thus, in order to be completely independent of the Microsoft TCP/IP stack, a namespace provider must implement both GETXBYYSP_gethostbyname and GETXBYYSP_WSAAsyncGetHostByName.
Adding Windows Authentication Providers Overview
collection in the element specifies a unique authentication provider that is used with the Internet Information Services (IIS) 7 Windows authentication module.
Compatibility
collection was introduced in IIS 7.0.
collection replaces the IIS 6.0 NTAuthenticationProviders metabase property.
Setup
The default installation of IIS 7 and later does not include the Windows authentication role service. To use Windows authentication on IIS, you must install the role service, disable Anonymous authentication for your Web site or application, and then enable Windows authentication for the site or application.
After you install the role service, IIS 7 commits the following configuration settings to the ApplicationHost.config file.
Windows Server 2012 or Windows Server 2012 R2
- On the taskbar, click Server Manager.
- In Server Manager, click the Manage menu, and then click Add Roles and Features.
- In the Add Roles and Features wizard, click Next. Select the installation type and click Next. Select the destination server and click Next.
- On the Server Roles page, expand Web Server (IIS), expand Web Server, expand Security, and then select Windows Authentication. Click Next.
.
- On the Select features page, click Next.
- On the Confirm installation selections page, click Install.
- On the Results page, click Close.
Windows 8 or Windows 8.1
- On the Start screen, move the pointer all the way to the lower left corner, right-click the Start button, and then click Control Panel.
- In Control Panel, click Programs and Features, and then click Turn Windows features on or off.
- Expand Internet Information Services, expand World Wide Web Services, expand Security, and then select Windows Authentication.
- Click OK.
- Click Close.
Windows Server 2008 or Windows Server 2008 R2
- On the taskbar, click Start, point to Administrative Tools, and then click Server Manager.
- In the Server Manager hierarchy pane, expand Roles, and then click Web Server (IIS).
- In the Web Server (IIS) pane, scroll to the Role Services section, and then click Add Role Services.
- On the Select Role Services page of the Add Role Services Wizard, select Windows Authentication, and then click Next.
- On the Confirm Installation Selections page, click Install.
- On the Results page, click Close.
Windows Vista or Windows 7
- On the taskbar, click Start, and then click Control Panel.
- In Control Panel, click Programs and Features, and then click Turn Windows Features on or off.
- Expand Internet Information Services, then World Wide Web Services, then Security.
- Select Windows Authentication, and then click OK.
How To
There is no user interface for Windows authentication providers for IIS 7. For examples of how to modify the list of Windows authentication providers programmatically, see the Code Samples section of this document.
Configuration
Attributes
Attribute | Description |
---|---|
Value | Optional String attribute. |
Specifies the name of the security provider.
By default, there are two providers: Negotiate and NTLM.
Child Elements
Configuration Sample
The following default element is configured at the root ApplicationHost.config file in IIS 7.0, and disables Windows authentication by default. It also defines the two Windows authentication providers for IIS 7.0.
The following example enables Windows authentication and disables Anonymous authentication for a Web site named Contoso.
Sample Code
The following code examples will enable Windows authentication and remove the Negotiate provider for a site named Contoso.
Поставщики служб конфигурации для ИТ-специалистов Configuration service providers for IT pros
Относится к: Applies to
- Windows 10 Windows 10
- Windows10 Mobile Windows 10 Mobile
В этой статье рассказывается, как ИТ-специалисты и системные администраторы могут использовать множество параметров, доступных через поставщиков служб конфигурации (CSP), для настройки устройств под управлением Windows 10 и Windows 10 Mobile в своих организациях. This article explains how IT pros and system administrators can take advantage of many settings available through configuration service providers (CSPs) to configure devices running Windows 10 and Windows 10 Mobile in their organizations. CSPs предоставляет параметры конфигурации устройств в Windows 10. CSPs expose device configuration settings in Windows 10. CSPs используются поставщиками служб управления мобильными устройствами (MDM) и документируются в Центре разработчиков оборудования. The CSPs are used by mobile device management (MDM) service providers and are documented in the Hardware Dev Center.
Сведения, предоставленные здесь о CSP и документации CSP, также применимы к Windows Mobile 5, Windows Mobile 6, Windows Phone 7 и Windows Phone 8, но ссылки на текущие CSP относятся к Windows 10 и Windows 10 Mobile. The information provided here about CSPs and CSP documentation also applies to Windows Mobile 5, Windows Mobile 6, Windows Phone 7, and Windows Phone 8, but links to current CSPs are for Windows 10 and Windows 10 Mobile.
Что такое поставщик служб конфигурации (CSP)? What is a CSP?
В клиентской операционной системе CSP — это интерфейс между настройками конфигурации, указанными в документе подготовка, и настройками конфигурации, которые находятся на устройстве. In the client operating system, a CSP is the interface between configuration settings that are specified in a provisioning document and configuration settings that are on the device. CSPs похожи на клиентские расширения групповой политики, поскольку они предоставляют интерфейс для чтения, настройки, изменения или удаления параметров конфигурации для данной функции. CSPs are similar to Group Policy client-side extensions in that they provide an interface to read, set, modify, or delete configuration settings for a given feature. Как правило, эти параметры соединуют с ключами реестра, файлами или разрешениями. Typically, these settings map to registry keys, files, or permissions. Некоторые из этих параметров можно настроить, а некоторые — только для чтения. Some of these settings are configurable, and some are read-only.
Начиная с Windows Mobile 5.0, CSPs использовались для управления мобильными устройствами Windows. Starting with Windows Mobile 5.0, CSPs were used to manage Windows mobile devices. На платформе Windows 10 подход к управлению как для настольных, так и для мобильных устройств сходится, с использованием тех же CSP для настройки и управления всеми устройствами под управлением Windows 10. On the Windows 10 platform, the management approach for both desktop and mobile devices converges, taking advantage of the same CSPs to configure and manage all devices running Windows 10.
Каждый CSP предоставляет доступ к определенным параметрам. Each CSP provides access to specific settings. Например, Wi-Fi CSP содержит параметры для создания профиля Wi-Fi. For example, the Wi-Fi CSP contains the settings to create a Wi-Fi profile.
CSPs стоят за многими задачами и политиками управления для Windows 10, как в Microsoft Intune, так и в поставщиках услуг, не в microsoft MDM. CSPs are behind many of the management tasks and policies for Windows 10, both in Microsoft Intune and in non-Microsoft MDM service providers. Например, в Intune политика, разрешающая поиск рекомендаций в адресной строке Microsoft Edge, использует параметр Браузер/AllowSearchSuggestionsinAddressBarпоставщика служб конфигурации политики. For example, in Intune, the policy to allow search suggestions in the Microsoft Edge address bar uses Browser/AllowSearchSuggestionsinAddressBar in the Policy CSP.
CSPs получают политики конфигурации в формате XML-разметки синхронизации (SyncML), оттесненной с сервера управления, совместимого с MDM, например Microsoft Intune. CSPs receive configuration policies in the XML-based Synchronization Markup Language (SyncML) format, pushed from an MDM-compliant management server, such as Microsoft Intune. Традиционные системы управления предприятиями, такие как Microsoft Endpoint Configuration Manager, также могут быть ориентированы на CSP с помощью клиентского средства управления Windows (WMI)-к-CSP Bridge. Traditional enterprise management systems, such as Microsoft Endpoint Configuration Manager, can also target CSPs, by using a client-side Windows Management Instrumentation (WMI)-to-CSP Bridge.
Язык разметки синхронизации (SyncML) Synchronization Markup Language (SyncML)
Протокол Open Mobile Alliance Device Management (OMA-DM) использует XML-syncML для обмена данными между совместимыми серверами и клиентами. The Open Mobile Alliance Device Management (OMA-DM) protocol uses the XML-based SyncML for data exchange between compliant servers and clients. SyncML предлагает открытый стандарт для использования в качестве альтернативы разрабатываемым отдельными поставщиками решениям, например WMI. SyncML offers an open standard to use as an alternative to vendor-specific management solutions (such as WMI). Польза для корпораций, переходящих на стандартные отраслевые протоколы управления, заключается в том, что это позволяет осуществлять управление более широким набором устройств различных поставщиков с помощью одной платформы (например Microsoft Intune). The value for enterprises adopting industry standard management protocols is that it allows the management of a broader set of vendor devices using a single platform (such as Microsoft Intune). Политики устройств, в том числе профили VPN-соединений, передаются клиентским устройствам в формате, аналогичном SyncML. Device policies, including VPN connection profiles, are delivered to client devices formatted as in SyncML. Получающий эти данные поставщик служб конфигурации считывает эту информацию и применяет необходимые настройки. The target CSP reads this information and applies the necessary configurations.
Мост WMI-CSP The WMI-to-CSP Bridge
Мост WMI-to-CSP — это компонент, позволяющий конфигурацию CSP Windows 10 с использованием скриптов и традиционного программного обеспечения корпоративного управления, например Configuration Manager с использованием WMI. The WMI-to-CSP Bridge is a component allowing configuration of Windows 10 CSPs using scripts and traditional enterprise management software, such as Configuration Manager using WMI. Мост отвечает за считывание команд WMI и с помощью компонента, называемого общим конфигуратором устройств, передает их поставщику служб конфигурации для приложения на устройстве. The bridge is responsible for reading WMI commands and through a component called the common device configurator pass them to a CSP for application on the device.
Почему следует изучить поставщики служб конфигурации? Why should you learn about CSPs?
Обычно для настройки устройств и управления ими предприятия используют групповую политику или MDM. Generally, enterprises rely on Group Policy or MDM to configure and manage devices. Для настройки устройств под управлением Windows службы MDM применяются поставщики служб конфигурации. For devices running Windows, MDM services use CSPs to configure your devices.
Кроме того, у вас могут быть неуправленные устройства или большое количество устройств, которые необходимо настроить перед регистрацией в управлении. In addition, you may have unmanaged devices, or a large number of devices that you want to configure before enrolling them in management. Также может потребоваться применить настраиваемые параметры, недоступные с помощью службы MDM. You may also want to apply custom settings that aren’t available through your MDM service. Документация по CSP поможет вам понять параметры, которые можно настроить или запросить. The CSP documentation can help you understand the settings that can be configured or queried.
Некоторые статьи в библиотеке Windows 10 и Windows 10 Mobile в Technet включают ссылки на применимые справочные темы CSP,такие как интеграция Кортаныв вашем бизнесе или предприятии, которая ссылается на CSP политики . Some of the articles in the Windows 10 and Windows 10 Mobile library on Technet include links to applicable CSP reference topics, such as Cortana integration in your business or enterprise, which links to the Policy CSP. В разделах, посвященных CSP, описываются все доступные параметры конфигурации. In the CSP topics, you can learn about all of the available configuration settings.
Поставщики служб конфигурации в конструкторе конфигураций Windows CSPs in Windows Configuration Designer
Вы можете использовать Конструктор конфигурации Windows для создания пакетов подготовка для применения параметров к устройствам во время работы вне окна (OOBE) и после настройки устройств. You can use Windows Configuration Designer to create provisioning packages to apply settings to devices during the out-of-box-experience (OOBE), and after the devices are set up. Вы также можете использовать пакеты подготовка для настройки подключения устройства и регистрации устройства в MDM. You can also use provisioning packages to configure a device’s connectivity and enroll the device in MDM. Многие параметры среды выполнения в конструкторе конфигураций Windows зависят от поставщиков служб конфигурации. Many of the runtime settings in Windows Configuration Designer are based on CSPs.
Для множества параметров в конструкторе конфигураций Windows на центральной панели отображается документация, которая содержит ссылку на поставщика CSP, если параметр использует его, как показано на следующем изображении. Many settings in Windows Configuration Designer will display documentation for that setting in the center pane, and will include a reference to the CSP if the setting uses one, as shown in the following image.
В разделе Пакеты подготовки в Windows 10 объясняется, как использовать конструктор конфигурации Windows для создания пакета подготовки среды выполнения. Provisioning packages in Windows 10 explains how to use the Windows Configuration Designer tool to create a runtime provisioning package.
Поставщики служб конфигурации в MDM CSPs in MDM
Большинство, если не все, поставщики служб конфигурации доступны через службу MDM. Most, if not all, CSPs are surfaced through your MDM service. Если вы видите поставщика CSP, который предоставляет нужную возможность, и не можете ее найти в службе MDM, обратитесь к поставщику MDM за помощью. If you see a CSP that provides a capability that you want to make use of and cannot find that capability in your MDM service, contact your MDM provider for assistance. Его можно назвать иначе, чем ожидалось. It might be named differently than you expected. Поставщики служб конфигурации, которые поддерживаются MDM, описаны в справочнике по поставщикам служб конфигурации. You can see the CSPs supported by MDM in the Configuration service provider reference.
Если поставщик CSP доступен, но не включен явно в ваше решение MDM, вы можете использовать CSP с помощью параметров OMA-URI. When a CSP is available but is not explicitly included in your MDM solution, you may be able to make use of the CSP by using OMA-URI settings. Например, в Intune для развертывания параметров можно применять пользовательские параметры политики . In Intune, for example, you can use custom policy settings to deploy settings. В Intune задокументирован частичный список параметров , которые можно ввести в разделе Параметры OMA-URI пользовательской политики, если служба MDM предоставляет данное расширение. Intune documents a partial list of settings that you can enter in the OMA-URI Settings section of a custom policy, if your MDM service provides that extension. Вы заметите, что в списке не объясняется смысл разрешенных значений и значений по умолчанию, поэтому воспользуйтесь справочной документацией CSP , чтобы найти эти сведения. You’ll notice that the list doesn’t explain the meanings of the allowed and default values, so use the CSP reference documentation to locate that information.
Поставщики служб конфигурации в XML-коде блокировки CSPs in Lockdown XML
XML-код блокировки можно использовать для настройки устройств под управлением Windows 10 Mobile. Lockdown XML can be used to configure devices running Windows 10 Mobile. Вы можете вручную создать файл XML-кода блокировки , чтобы использовать параметры конфигурации, предоставляемые поставщиком служб конфигурации EnterpriseAssignedAccess. You can manually author a Lockdown XML file to make use of the configuration settings available through the EnterpriseAssignedAccess configuration service provider (CSP). В Windows 10 версии 1703 можно также использовать новое приложение «Конструктор файлов блокировки» для настройки XML-кода блокировки. In Windows 10, version 1703, you can also use the new Lockdown Designer app to configure your Lockdown XML.
Как использовать документацию по поставщикам служб конфигурации? How do you use the CSP documentation?
Все поставщики служб конфигурации в Windows 10 описаны в справочнике по поставщикам служб конфигурации. All CSPs in Windows 10 are documented in the Configuration service provider reference.
В основном разделе CSP указано, какие поставщики CSP поддерживаются в каждом выпуске Windows 10, и представлены ссылки на документацию для каждого отдельного CSP. The main CSP topic tells you which CSPs are supported on each edition of Windows 10, and links to the documentation for each individual CSP.
В документации для каждого поставщика CSP используется одинаковая структура. The documentation for each CSP follows the same structure. После введения, где описывается цель CSP, отображается схема с частями CSP в формате дерева. After an introduction that explains the purpose of the CSP, a diagram shows the parts of the CSP in tree format.
Полный путь к определенному параметру конфигурации представлен его универсальным кодом ресурса Open Mobile Alliance (OMA-URI). The full path to a specific configuration setting is represented by its Open Mobile Alliance — Uniform Resource Identifier (OMA-URI). URI относителен для корневого узла устройства (например MSFT). The URI is relative to the devices’ root node (MSFT, for example). Возможности, поддерживаемые определенным поставщиком служб конфигурации, можно задать, используя полный путь OMA-URI. Features supported by a particular CSP can be set by addressing the complete OMA-URI path.
В следующем примере показана схема для AssignedAccess CSP. The following example shows the diagram for the AssignedAccess CSP. Схема соответствует XML для этого поставщика CSP. The diagram maps to the XML for that CSP. Обратите внимание на различные фигуры на схеме: округлые элементы — это узлы, а прямоугольные элементы — это параметры или политики, для которых должно быть предоставлено значение. Notice the different shapes in the diagram: rounded elements are nodes, and rectangular elements are settings or policies for which a value must be supplied.
Элемент на древовидной схеме после корневого узла представляет собой имя CSP. The element in the tree diagram after the root node tells you the name of the CSP. Зная эту структуру, можно распознать в XML-коде части пути URI этого поставщика CSP. Если вы увидите их в XML, вы будете знать, к какому справочнику по CSP следует обратиться. Knowing this structure, you would recognize in XML the parts of the URI path for that CSP and, if you saw it in XML, you would know which CSP reference to look up. Например, в следующем пути OMS-URI для параметров приложения режима киоска можно увидеть, что он использует CSP AssignedAccess. For example, in the following OMS-URI path for the kiosk mode app settings, you can see that it uses the AssignedAccess CSP.
Когда элемент на схеме использует italic font, он указывает местообладатель для определенных сведений, таких как ID клиента в следующем примере. When an element in the diagram uses italic font, it indicates a placeholder for specific information, such as the tenant ID in the following example.
После схемы в документации приводится описание каждого элемента. After the diagram, the documentation describes each element. Для каждого параметра или политики указаны допустимые значения. For each policy or setting, the valid values are listed.
Например, в AssignedAccess CSPэто KioskModeApp. For example, in the AssignedAccess CSP, the setting is KioskModeApp. В документации указано, что значение KioskModeApp — это строка JSON, содержащая имя учетной записи пользователя и идентификатор пользовательской модели (AUMID) приложения в режиме киоска. The documentation tells you that the value for KioskModeApp is a JSON string that contains the user account name and Application User Model ID (AUMID) of the Kiosk mode app.
Документация для большинства CSP также содержит пример XML-кода. The documentation for most CSPs will also include an XML example.
Примеры CSP CSP examples
Поставщики CSP предоставляют доступ к ряду полезных для предприятий параметров. CSPs provide access to a number of settings useful to enterprises. В этом разделе вводится CSPs, которые могут оказаться полезными для предприятия. This section introduces the CSPs that an enterprise might find useful.
CSP EnterpriseAssignedAccess позволяет ИТ-администраторам настраивать параметры на устройстве Windows 10 Mobile. The EnterpriseAssignedAccess CSP lets IT administrators configure settings on a Windows 10 Mobile device. Предприятие может использовать этот CSP, чтобы создавать мобильные устройства с одной или ограниченной сферой применения, например наладонное устройство, на котором работает только приложение для проверки цен. An enterprise can make use of this CSP to create single-use or limited-use mobile devices, such as a handheld device that only runs a price-checking app.
Помимо обоев экрана, темы, часового пояса и языка, CSP EnterpriseAssignedAccess включает AssignedAccessXml, которые можно использовать для блокировки устройства с помощью следующих параметров: In addition to lock screen wallpaper, theme, time zone, and language, the EnterpriseAssignedAccess CSP includes AssignedAccessXml that can be used to lock down the device through the following settings:
- включение и отключение центра поддержки; Enabling or disabling the Action Center.
- настройка количества столбцов плиток на начальном экране; Configuring the number of tile columns in the Start layout.
- выбор приложений, которые будут доступны на устройстве; Restricting the apps that will be available on the device.
- выбор параметров, которые будут доступны пользователю; Restricting the settings that the user can access.
- выбор аппаратных кнопок, которые будут доступны; Restricting the hardware buttons that will be operable.
- ограничение доступа к контекстному меню; Restricting access to the context menu.
- включение и отключение операций с плитками; Enabling or disabling tile manipulation.
- создание конфигураций для определенных ролей. Creating role-specific configurations.
CSP политики позволяет предприятию настраивать политики на Windows 10 и Windows 10 Mobile. The Policy CSP enables the enterprise to configure policies on Windows 10 and Windows 10 Mobile. Некоторые из этих параметров политики также можно применять с помощью групповой политики. В документации CSP перечислены соответствующие параметры групповой политики. Some of these policy settings can also be applied using Group Policy, and the CSP documentation lists the equivalent Group Policy settings.
Далее описаны некоторые параметры, доступные в поставщике служб конфигурации политики. Some of the settings available in the Policy CSP include the following:
- Учетныезаписи, например, можно ли добавить к устройству учетную запись, не в microsoft. Accounts, such as whether a non-Microsoft account can be added to the device.
- Управление приложениями, например разрешено ли только приложениям Microsoft Store. Application management, such as whether only Microsoft Store apps are allowed.
- Bluetooth, например службы, разрешенные к использованию. Bluetooth, such as the services allowed to use it.
- Браузер, например ограничение просмотра InPrivate. Browser, such as restricting InPrivate browsing.
- Подключение, например возможность подключения устройства к компьютеру с помощью USB. Connectivity, such as whether the device can be connected to a computer by USB.
- Defender (только для рабочего стола), например день и время для сканирования. Defender (for desktop only), such as day and time to scan.
- Блокировкаустройства, например тип ПИН-кода или пароля, необходимых для разблокировки устройства. Device lock, such as the type of PIN or password required to unlock the device.
- Опыт, например разрешение кортаны. Experience, such as allowing Cortana.
- Безопасность, например разрешено ли подготовка пакетов. Security, such as whether provisioning packages are allowed.
- Параметры, такие как предоставление пользователю возможности изменять параметры VPN. Settings, such as enabling the user to change VPN settings.
- Начните, например, применяйте стандартный макет «Начните». Start, such as applying a standard Start layout.
- Система, например разрешение пользователю сбросить устройство. System, such as allowing the user to reset the device.
- Ввод текста, например разрешение устройству отправлять анонимные образцы данных ввода текста пользователя в Корпорацию Майкрософт. Text input, such as allowing the device to send anonymized user text input data samples to Microsoft.
- Обновление, например, может ли устройство использовать Microsoft Update, cлужбы Windows Server Update Services (WSUS) или Microsoft Store. Update, such as whether the device can use Microsoft Update, Windows Server Update Services (WSUS), or Microsoft Store.
- WiFi, например, включен ли общий доступ в Интернет. WiFi, such as whether Internet sharing is enabled.
Вот список поставщиков служб конфигурации, поддерживаемых в Windows 10 Корпоративная, Windows 10 Mobile Корпоративная или в обеих системах. Here is a list of CSPs supported on Windows 10 Enterprise, Windows 10 Mobile Enterprise, or both: