Can't connect to WiFi with WPA-EAP











up vote
0
down vote

favorite












I'm trying to connect to a WiFi with WPA-EAP, but it always fails with error:



failure to add network: invalid message format


Full log from journalctl:



NetworkManager[668]: <info>  device (wlp5s0): Activation: starting connection 'eduroam' (1ed02f15-9f55-452c-9b1c-4b2670bb2eac)
NetworkManager[668]: <info> audit: op="connection-activate" uuid="1ed02f15-9f55-452c-9b1c-4b2670bb2eac" name="eduroam" pid=3216 uid=1000 result="success"
NetworkManager[668]: <info> device (wlp5s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
NetworkManager[668]: <info> manager: NetworkManager state is now CONNECTING
NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: reset MAC address to 80:86:F2:1D:79:41 (preserve)
NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) access point 'eduroam' has security, but secrets are required.
NetworkManager[668]: <info> device (wlp5s0): state change: config -> need-auth (reason 'none') [50 60 0]
kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
NetworkManager[668]: <info> device (wlp5s0): state change: need-auth -> prepare (reason 'none') [60 40 0]
NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) connection 'eduroam' has security, and secrets exist. No new secrets needed.
NetworkManager[668]: <info> Config: added 'ssid' value 'eduroam'
NetworkManager[668]: <info> Config: added 'scan_ssid' value '1'
NetworkManager[668]: <info> Config: added 'key_mgmt' value 'WPA-EAP'
NetworkManager[668]: <info> Config: added 'proto' value 'RSN'
NetworkManager[668]: <info> Config: added 'pairwise' value 'CCMP'
NetworkManager[668]: <info> Config: added 'group' value 'CCMP TKIP'
NetworkManager[668]: <info> Config: added 'password' value '<hidden>'
NetworkManager[668]: <info> Config: added 'eap' value 'PEAP'
NetworkManager[668]: <info> Config: added 'fragment_size' value '1266'
NetworkManager[668]: <info> Config: added 'phase2' value 'auth=MSCHAPV2'
NetworkManager[668]: <info> Config: added 'ca_cert' value '<mypath>/ca.pem'
NetworkManager[668]: <info> Config: added 'altsubject_match' value 'DNS:<mydomain.com>'
NetworkManager[668]: <info> Config: added 'identity' value '<myusername>'
NetworkManager[668]: <info> Config: added 'anonymous_identity' value ''
NetworkManager[668]: <info> Config: added 'bgscan' value 'simple:30:-65:300'
NetworkManager[668]: <info> Config: added 'proactive_key_caching' value '1'
NetworkManager[668]: <warn> sup-iface[0x5609a63bf980,wlp5s0]: assoc[0x5609a63c8f40]: failure to add network: invalid message format
NetworkManager[668]: <info> device (wlp5s0): state change: config -> failed (reason 'supplicant-failed') [50 120 10]
NetworkManager[668]: <info> manager: NetworkManager state is now DISCONNECTED
NetworkManager[668]: <warn> device (wlp5s0): Activation: failed for connection 'eduroam'
NetworkManager[668]: <info> device (wlp5s0): state change: failed -> disconnected (reason 'none') [120 30 0]
kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: set MAC address to 16:09:73:46:D9:3E (scanning)
kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready


What I am doing wrong?










share|improve this question


























    up vote
    0
    down vote

    favorite












    I'm trying to connect to a WiFi with WPA-EAP, but it always fails with error:



    failure to add network: invalid message format


    Full log from journalctl:



    NetworkManager[668]: <info>  device (wlp5s0): Activation: starting connection 'eduroam' (1ed02f15-9f55-452c-9b1c-4b2670bb2eac)
    NetworkManager[668]: <info> audit: op="connection-activate" uuid="1ed02f15-9f55-452c-9b1c-4b2670bb2eac" name="eduroam" pid=3216 uid=1000 result="success"
    NetworkManager[668]: <info> device (wlp5s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
    NetworkManager[668]: <info> manager: NetworkManager state is now CONNECTING
    NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: reset MAC address to 80:86:F2:1D:79:41 (preserve)
    NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
    NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) access point 'eduroam' has security, but secrets are required.
    NetworkManager[668]: <info> device (wlp5s0): state change: config -> need-auth (reason 'none') [50 60 0]
    kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
    NetworkManager[668]: <info> device (wlp5s0): state change: need-auth -> prepare (reason 'none') [60 40 0]
    NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
    NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) connection 'eduroam' has security, and secrets exist. No new secrets needed.
    NetworkManager[668]: <info> Config: added 'ssid' value 'eduroam'
    NetworkManager[668]: <info> Config: added 'scan_ssid' value '1'
    NetworkManager[668]: <info> Config: added 'key_mgmt' value 'WPA-EAP'
    NetworkManager[668]: <info> Config: added 'proto' value 'RSN'
    NetworkManager[668]: <info> Config: added 'pairwise' value 'CCMP'
    NetworkManager[668]: <info> Config: added 'group' value 'CCMP TKIP'
    NetworkManager[668]: <info> Config: added 'password' value '<hidden>'
    NetworkManager[668]: <info> Config: added 'eap' value 'PEAP'
    NetworkManager[668]: <info> Config: added 'fragment_size' value '1266'
    NetworkManager[668]: <info> Config: added 'phase2' value 'auth=MSCHAPV2'
    NetworkManager[668]: <info> Config: added 'ca_cert' value '<mypath>/ca.pem'
    NetworkManager[668]: <info> Config: added 'altsubject_match' value 'DNS:<mydomain.com>'
    NetworkManager[668]: <info> Config: added 'identity' value '<myusername>'
    NetworkManager[668]: <info> Config: added 'anonymous_identity' value ''
    NetworkManager[668]: <info> Config: added 'bgscan' value 'simple:30:-65:300'
    NetworkManager[668]: <info> Config: added 'proactive_key_caching' value '1'
    NetworkManager[668]: <warn> sup-iface[0x5609a63bf980,wlp5s0]: assoc[0x5609a63c8f40]: failure to add network: invalid message format
    NetworkManager[668]: <info> device (wlp5s0): state change: config -> failed (reason 'supplicant-failed') [50 120 10]
    NetworkManager[668]: <info> manager: NetworkManager state is now DISCONNECTED
    NetworkManager[668]: <warn> device (wlp5s0): Activation: failed for connection 'eduroam'
    NetworkManager[668]: <info> device (wlp5s0): state change: failed -> disconnected (reason 'none') [120 30 0]
    kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
    NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: set MAC address to 16:09:73:46:D9:3E (scanning)
    kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready


    What I am doing wrong?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to connect to a WiFi with WPA-EAP, but it always fails with error:



      failure to add network: invalid message format


      Full log from journalctl:



      NetworkManager[668]: <info>  device (wlp5s0): Activation: starting connection 'eduroam' (1ed02f15-9f55-452c-9b1c-4b2670bb2eac)
      NetworkManager[668]: <info> audit: op="connection-activate" uuid="1ed02f15-9f55-452c-9b1c-4b2670bb2eac" name="eduroam" pid=3216 uid=1000 result="success"
      NetworkManager[668]: <info> device (wlp5s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
      NetworkManager[668]: <info> manager: NetworkManager state is now CONNECTING
      NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: reset MAC address to 80:86:F2:1D:79:41 (preserve)
      NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
      NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) access point 'eduroam' has security, but secrets are required.
      NetworkManager[668]: <info> device (wlp5s0): state change: config -> need-auth (reason 'none') [50 60 0]
      kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
      NetworkManager[668]: <info> device (wlp5s0): state change: need-auth -> prepare (reason 'none') [60 40 0]
      NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
      NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) connection 'eduroam' has security, and secrets exist. No new secrets needed.
      NetworkManager[668]: <info> Config: added 'ssid' value 'eduroam'
      NetworkManager[668]: <info> Config: added 'scan_ssid' value '1'
      NetworkManager[668]: <info> Config: added 'key_mgmt' value 'WPA-EAP'
      NetworkManager[668]: <info> Config: added 'proto' value 'RSN'
      NetworkManager[668]: <info> Config: added 'pairwise' value 'CCMP'
      NetworkManager[668]: <info> Config: added 'group' value 'CCMP TKIP'
      NetworkManager[668]: <info> Config: added 'password' value '<hidden>'
      NetworkManager[668]: <info> Config: added 'eap' value 'PEAP'
      NetworkManager[668]: <info> Config: added 'fragment_size' value '1266'
      NetworkManager[668]: <info> Config: added 'phase2' value 'auth=MSCHAPV2'
      NetworkManager[668]: <info> Config: added 'ca_cert' value '<mypath>/ca.pem'
      NetworkManager[668]: <info> Config: added 'altsubject_match' value 'DNS:<mydomain.com>'
      NetworkManager[668]: <info> Config: added 'identity' value '<myusername>'
      NetworkManager[668]: <info> Config: added 'anonymous_identity' value ''
      NetworkManager[668]: <info> Config: added 'bgscan' value 'simple:30:-65:300'
      NetworkManager[668]: <info> Config: added 'proactive_key_caching' value '1'
      NetworkManager[668]: <warn> sup-iface[0x5609a63bf980,wlp5s0]: assoc[0x5609a63c8f40]: failure to add network: invalid message format
      NetworkManager[668]: <info> device (wlp5s0): state change: config -> failed (reason 'supplicant-failed') [50 120 10]
      NetworkManager[668]: <info> manager: NetworkManager state is now DISCONNECTED
      NetworkManager[668]: <warn> device (wlp5s0): Activation: failed for connection 'eduroam'
      NetworkManager[668]: <info> device (wlp5s0): state change: failed -> disconnected (reason 'none') [120 30 0]
      kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
      NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: set MAC address to 16:09:73:46:D9:3E (scanning)
      kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready


      What I am doing wrong?










      share|improve this question













      I'm trying to connect to a WiFi with WPA-EAP, but it always fails with error:



      failure to add network: invalid message format


      Full log from journalctl:



      NetworkManager[668]: <info>  device (wlp5s0): Activation: starting connection 'eduroam' (1ed02f15-9f55-452c-9b1c-4b2670bb2eac)
      NetworkManager[668]: <info> audit: op="connection-activate" uuid="1ed02f15-9f55-452c-9b1c-4b2670bb2eac" name="eduroam" pid=3216 uid=1000 result="success"
      NetworkManager[668]: <info> device (wlp5s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
      NetworkManager[668]: <info> manager: NetworkManager state is now CONNECTING
      NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: reset MAC address to 80:86:F2:1D:79:41 (preserve)
      NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
      NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) access point 'eduroam' has security, but secrets are required.
      NetworkManager[668]: <info> device (wlp5s0): state change: config -> need-auth (reason 'none') [50 60 0]
      kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
      NetworkManager[668]: <info> device (wlp5s0): state change: need-auth -> prepare (reason 'none') [60 40 0]
      NetworkManager[668]: <info> device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0]
      NetworkManager[668]: <info> device (wlp5s0): Activation: (wifi) connection 'eduroam' has security, and secrets exist. No new secrets needed.
      NetworkManager[668]: <info> Config: added 'ssid' value 'eduroam'
      NetworkManager[668]: <info> Config: added 'scan_ssid' value '1'
      NetworkManager[668]: <info> Config: added 'key_mgmt' value 'WPA-EAP'
      NetworkManager[668]: <info> Config: added 'proto' value 'RSN'
      NetworkManager[668]: <info> Config: added 'pairwise' value 'CCMP'
      NetworkManager[668]: <info> Config: added 'group' value 'CCMP TKIP'
      NetworkManager[668]: <info> Config: added 'password' value '<hidden>'
      NetworkManager[668]: <info> Config: added 'eap' value 'PEAP'
      NetworkManager[668]: <info> Config: added 'fragment_size' value '1266'
      NetworkManager[668]: <info> Config: added 'phase2' value 'auth=MSCHAPV2'
      NetworkManager[668]: <info> Config: added 'ca_cert' value '<mypath>/ca.pem'
      NetworkManager[668]: <info> Config: added 'altsubject_match' value 'DNS:<mydomain.com>'
      NetworkManager[668]: <info> Config: added 'identity' value '<myusername>'
      NetworkManager[668]: <info> Config: added 'anonymous_identity' value ''
      NetworkManager[668]: <info> Config: added 'bgscan' value 'simple:30:-65:300'
      NetworkManager[668]: <info> Config: added 'proactive_key_caching' value '1'
      NetworkManager[668]: <warn> sup-iface[0x5609a63bf980,wlp5s0]: assoc[0x5609a63c8f40]: failure to add network: invalid message format
      NetworkManager[668]: <info> device (wlp5s0): state change: config -> failed (reason 'supplicant-failed') [50 120 10]
      NetworkManager[668]: <info> manager: NetworkManager state is now DISCONNECTED
      NetworkManager[668]: <warn> device (wlp5s0): Activation: failed for connection 'eduroam'
      NetworkManager[668]: <info> device (wlp5s0): state change: failed -> disconnected (reason 'none') [120 30 0]
      kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
      NetworkManager[668]: <info> device (wlp5s0): set-hw-addr: set MAC address to 16:09:73:46:D9:3E (scanning)
      kernel: IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready


      What I am doing wrong?







      networking wifi wpa wpa2-eap






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 12 at 14:29









      Martin Heralecký

      440514




      440514






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          The problem was solved by removing this line:



          anonymous-identity=


          from /etc/NetworkManager/system-connections/conname.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475093%2fcant-connect-to-wifi-with-wpa-eap%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            The problem was solved by removing this line:



            anonymous-identity=


            from /etc/NetworkManager/system-connections/conname.






            share|improve this answer

























              up vote
              0
              down vote



              accepted










              The problem was solved by removing this line:



              anonymous-identity=


              from /etc/NetworkManager/system-connections/conname.






              share|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                The problem was solved by removing this line:



                anonymous-identity=


                from /etc/NetworkManager/system-connections/conname.






                share|improve this answer












                The problem was solved by removing this line:



                anonymous-identity=


                from /etc/NetworkManager/system-connections/conname.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 27 at 22:19









                Martin Heralecký

                440514




                440514






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475093%2fcant-connect-to-wifi-with-wpa-eap%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Morgemoulin

                    Scott Moir

                    Souastre