friedrith / node-wifi

📶 NodeJS tool to manage wifi (connections, scans)
MIT License
399 stars 161 forks source link

Unable to connect to wifi with WPA2-Enterprise security. #130

Open chezzzer opened 4 years ago

chezzzer commented 4 years ago

Expected Behavior

Should provide parameters for username as well as password

Current Behavior

Breaks my saved auth for the network and returns: "The network specified by profile "(network)" is not connectible. Reason: Capability matching failed at profile (auth not found)."

Affected features

Possible Solution

Add a parameter for username

Steps to Reproduce (for bugs)

1. Connect to a WPA2-Enterprise network

Context

An interface to control wifi (app inside windows)

Your Environment

friedrith commented 4 years ago

Hello,

node-wifi on windows use netsh cli. Unfortunately netsh doesn't have dedicated argument to manage wifi profile. So node-wifi has to write the profile config file itself.

For now node-wifi manages only WPA2 secured networks but it is a good idea to add WPA2 enterprise. node-wifi need to generate the config file for WPA2. I found several samples to use: https://docs.microsoft.com/en-us/windows/win32/nativewifi/wireless-profile-samples. Which one should we use for your use case?