friedrith / node-wifi

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

Connection on Peap access point #21

Open nsagot opened 6 years ago

nsagot commented 6 years ago

It's only possible to connect with access point that needed a simple password.

That's a problem for Student and users of Eduroam for example

friedrith commented 6 years ago

Hi, Can you describe me how you authenticate you on a Eduroam wifi ? I think you must type your login and password on a web page if I remember well my school years.

If it is the case, node-wifi cannot do anything because each wifi portal uses the protocole it wants. It is impossible to manage all of them.

nsagot commented 6 years ago

Hi,

My configuration on /etc/wpa_supplicant/wpa_supplicant.conf file :

network={
       ssid="eduroam"
       priority=1
       proto=RSN
       key_mgmt=WPA-EAP
       pairwise=CCMP
       auth_alg=OPEN
       eap=PEAP
       identity="username"
       password="password"
       phase1="peaplabel=0"
       phase2="auth=MSCHAPV2"
}
friedrith commented 6 years ago

You don't use a web interface to connect your computer ? How can you connect your computer on other OS ?

nsagot commented 6 years ago

No, only the configuration file is only needed

friedrith commented 6 years ago

Ok and How does it work on windows or macOS ?

nsagot commented 6 years ago

When you connect to the access point username/password is require.

You can look for example how to connect to Eduroam access points because all Eduroam WiFi networks use Peap protocol

friedrith commented 6 years ago

On windows, node-wifi uses netsh command. On linux, it is nmcli and on macOs it is airport. Do you know I could manager peap with these commands because I didn't see any mention to peap protocol on their documentation ?