-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement 802.1x (EAP) in network settings (#1597)
## Problem No option to configure 802.1x (EAP) for network connections. ## Solution Add ability to configure 802.1x in agama. Note: For the certificates etc. NM supports 3 different formats. I decided to only implement the file format as that is IMO the most useful and should suffice. ## Testing - *Added a new unit test* - *Tested manually* ```bash sudo agama auth login && AGAMA_TOKEN=`sudo agama auth show` curl -X POST http://localhost/api/network/connections \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AGAMA_TOKEN" \ -d '{ "id": "ethernet-test", "method4": "auto", "method6": "auto", "ignore_auto_dns": false, "status": "down", "ieee-8021x": { "eap": [ "peap" ], "phase2_auth": "mschapv2", "identity": "test_user", "password": "test_pw", "client_cert": "/etc/NetworkManager/system-connections/cert.pem", "private_key": "/etc/NetworkManager/system-connections/key.pem", "private_key_password": "test_pw", "peap_version": "1", "peap_label": true } }' curl -X POST http://localhost/api/network/system/apply \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $AGAMA_TOKEN" nmcli con show ethernet-test # See 802-1x.* settings set. ```
- Loading branch information
Showing
6 changed files
with
681 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.