Support "domain-suffix-match" in Security8021xSetting
ClosedPublic

Authored by Martchus on Oct 21 2017, 5:40 PM.

Details

Summary

Required for 'Allow setting "domain-suffix-match" in Wi-Fi settings' in plasma-nm which concerns Wi-Fi settings of enterprise WPA/WPA2:

  • TLS
  • tunneled TLS
  • PEAP
Test Plan
  1. Apply 'Allow setting "domain-suffix-match" in Wi-Fi settings' in plasma-nm as well
  2. Open connection settings
  3. Select Wi-Fi connection
  4. Configure domain under enterprise security settings
  5. Apply
  6. Open related config file, eg. /etc/NetworkManager/system-connections/eduroam
  7. Check whether "domain-suffix-match" is set correctly.

BTW: To use the development build of the kcm module one must set QT_PLUGIN_PATH to the directory where kcm_networkmanagement.so has been installed. Then it can be tested by executing eg. kcmshell5 --desktopfile /devel/stuff/share/kservices5/plasma-applet-org.kde.plasma.networkmanagement.desktop kcm_networkmanagement.

Diff Detail

Repository
R282 NetworkManagerQt
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Martchus created this revision.Oct 21 2017, 5:40 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptOct 21 2017, 5:40 PM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
jgrulich requested changes to this revision.Oct 23 2017, 5:10 AM
jgrulich added a subscriber: jgrulich.
jgrulich added inline comments.
src/settings/security8021xsetting.h
66

Usually these methods are named according to property they return so in this case it should be setDomainSuffixMatch() and domainSuffixMatch(). Same applies to other places where you use just domain.

This revision now requires changes to proceed.Oct 23 2017, 5:10 AM
Martchus updated this revision to Diff 21149.Oct 23 2017, 6:07 AM

Changed the method names

jgrulich requested changes to this revision.Oct 23 2017, 6:10 AM

Now it looks good. Just one thing I forgot is a unit test for this property. You can add it to autotests/settings/8021xsettingtest.cpp and build the tests with "-DBUILD_TESTING=true" cmake command and then running "make tests" to verify your test passes.

This revision now requires changes to proceed.Oct 23 2017, 6:10 AM
Martchus updated this revision to Diff 21153.Oct 23 2017, 6:20 AM

Add "domainSuffixMatch" to auto tests

jgrulich accepted this revision.Oct 23 2017, 6:38 AM

Good to go. Thank you.

This revision is now accepted and ready to land.Oct 23 2017, 6:38 AM

I don't have commit access so somebody needs to merge this for me.

This revision was automatically updated to reflect the committed changes.