EAP-TTLS 用户属性 xml 样本

EAP-TTLS user properties xml sample

为了使用 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)

有人有类似的样本文件吗?或者我能帮忙看看如何更改现有样本吗?

以下 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>