none
WINCE7 Native WiFi PEAP-MSCHAPv2 connection RRS feed

  • Question

  • Hi All

    I try to connect PEAP-MSCHAPv2 wireless by native wi-fi API (C++).

    I use API WlanSetProfile and WlanSetProfileEapXmlUserData

    But, I found this introduction:

    https://docs.microsoft.com/en-us/previous-versions/windows/embedded/gg159203(v%3dwinembedded.80)

    WINCE doesn't support Credentials element. Only CredentialsBlob is supported.

    I don't know how to generate CredentialsBlob. 

    Here is my EapXmlUserData. It is working on WIN7, but WINCE7 is not working.

    "<?xml version=\"1.0\" ?>\
    <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>25</eapCommon:Type>\
    <eapCommon:AuthorId>0</eapCommon:AuthorId>\
    </EapMethod>\
    <Credentials xmlns:eapUser=\"http://www.microsoft.com/provisioning/EapUserPropertiesV1\" \
    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" \
    xmlns:baseEap=\"http://www.microsoft.com/provisioning/BaseEapUserPropertiesV1\" \
    xmlns:MsPeap=\"http://www.microsoft.com/provisioning/MsPeapUserPropertiesV1\" \
    xmlns:MsChapV2=\"http://www.microsoft.com/provisioning/MsChapV2UserPropertiesV1\"> \
    <baseEap:Eap> \
    <baseEap:Type>25</baseEap:Type> \
    <MsPeap:EapType> \
    <baseEap:Eap> \
    <baseEap:Type>26</baseEap:Type> \
    <MsChapV2:EapType> \
    <MsChapV2:Username>test</MsChapV2:Username> \
    <MsChapV2:Password>123456</MsChapV2:Password> \
    </MsChapV2:EapType> \
    </baseEap:Eap>    \
    </MsPeap:EapType> \
    </baseEap:Eap> \
    </Credentials> \
    </EapHostUserCredentials>";

    Does anyone know how to generate CredentialsBlob??

    Thanks~

    Monday, July 9, 2018 8:32 AM