xml - 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)
有人有类似的示例文件,或者我可以帮助如何更改现有示例吗?
解决方案
以下 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>
推荐阅读
- r - 我想计算时间之间的时间差
- django - Django Rest Framework - 如何在 POST 时设置 current_user
- javascript - Javascript 按钮禁用然后立即启用
- google-chrome - Chrome 扩展:如何检查使用 pac 脚本设置的代理是否有效
- database - 为什么我会收到“找不到数据源名称且未指定默认驱动程序”,我该如何解决?
- tensorboard - TensorBoard 不会实时更新
- javascript - 如何使用javascript删除firestore上的所有文档
- sql-server - 使用 SQL 查询将最新的平面文件从文件夹加载到数据库表
- javascript - 按键减少数组对象并返回嵌套对象
- wireshark - TSHARK 排除过滤器