首页 > 解决方案 > EAP-TTLS 用户属性 xml 示例

问题描述

为了使用 wlanapi.h 中的 c++ 函数 WlanSetProfileEapXmlUserData,我需要一个 EAP 用户属性 XML 文件。

在 Microsoft,有一些用于 EAP-TLS 或 PEAP MS-CHAPv2 的示例,但没有用于 EAP-TTLS。(https://docs.microsoft.com/en-us/windows/win32/eaphost/user-profiles

有人有类似的示例文件,或者我可以帮助如何更改现有示例吗?

标签: xmlwindowsradius

解决方案


以下 xml 对我有用:

<?xml version="1.0" encoding="UTF-8"?>
<EapHostUserCredentials xmlns="http://www.microsoft.com/provisioning/EapHostUserCredentials" 
                        xmlns:eapCommon="http://www.microsoft.com/provisioning/EapCommon" 
                        xmlns:baseEap="http://www.microsoft.com/provisioning/BaseEapMethodUserCredentials">
<EapMethod>
    <eapCommon:Type>21</eapCommon:Type>
    <eapCommon:AuthorId>311</eapCommon:AuthorId>
</EapMethod>
<Credentials xmlns="http://www.microsoft.com/provisioning/EapHostUserCredentials">
    <EapTtls xmlns="http://www.microsoft.com/provisioning/EapTtlsUserPropertiesV1">
        <Username>test</Username>
        <Password>test</Password>
    </EapTtls>
</Credentials>
</EapHostUserCredentials>

推荐阅读