Change default EAP type in hostapd












1















I'm trying to change the default EAP type in hostapd but I am not able to understand how to do that.



Here's what I've found reading the hostapd.conf file:



# NAI Realm information
# One or more realm can be advertised. Each nai_realm line adds a new realm to
# the set. These parameters provide information for stations using Interworking
# network selection to allow automatic connection to a network based on
# credentials.
# format: <encoding>,<NAI Realm(s)>[,<EAP Method 1>][,<EAP Method 2>][,...]
# encoding:
# 0 = Realm formatted in accordance with IETF RFC 4282
# 1 = UTF-8 formatted character string that is not formatted in
# accordance with IETF RFC 4282
# NAI Realm(s): Semi-colon delimited NAI Realm(s)
# EAP Method: <EAP Method>[:<[AuthParam1:Val1]>][<[AuthParam2:Val2]>][...]
# EAP Method types, see:
# http://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml#eap-numbers-4
# AuthParam (Table 8-188 in IEEE Std 802.11-2012):
# ID 2 = Non-EAP Inner Authentication Type
# 1 = PAP, 2 = CHAP, 3 = MSCHAP, 4 = MSCHAPV2
# ID 3 = Inner authentication EAP Method Type
# ID 5 = Credential Type
# 1 = SIM, 2 = USIM, 3 = NFC Secure Element, 4 = Hardware Token,
# 5 = Softoken, 6 = Certificate, 7 = username/password, 9 = Anonymous,
# 10 = Vendor Specific
#nai_realm=0,example.com;example.net
# EAP methods EAP-TLS with certificate and EAP-TTLS/MSCHAPv2 with
# username/password
#nai_realm=0,example.org,13[5:6],21[2:4][5:7]









share|improve this question





























    1















    I'm trying to change the default EAP type in hostapd but I am not able to understand how to do that.



    Here's what I've found reading the hostapd.conf file:



    # NAI Realm information
    # One or more realm can be advertised. Each nai_realm line adds a new realm to
    # the set. These parameters provide information for stations using Interworking
    # network selection to allow automatic connection to a network based on
    # credentials.
    # format: <encoding>,<NAI Realm(s)>[,<EAP Method 1>][,<EAP Method 2>][,...]
    # encoding:
    # 0 = Realm formatted in accordance with IETF RFC 4282
    # 1 = UTF-8 formatted character string that is not formatted in
    # accordance with IETF RFC 4282
    # NAI Realm(s): Semi-colon delimited NAI Realm(s)
    # EAP Method: <EAP Method>[:<[AuthParam1:Val1]>][<[AuthParam2:Val2]>][...]
    # EAP Method types, see:
    # http://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml#eap-numbers-4
    # AuthParam (Table 8-188 in IEEE Std 802.11-2012):
    # ID 2 = Non-EAP Inner Authentication Type
    # 1 = PAP, 2 = CHAP, 3 = MSCHAP, 4 = MSCHAPV2
    # ID 3 = Inner authentication EAP Method Type
    # ID 5 = Credential Type
    # 1 = SIM, 2 = USIM, 3 = NFC Secure Element, 4 = Hardware Token,
    # 5 = Softoken, 6 = Certificate, 7 = username/password, 9 = Anonymous,
    # 10 = Vendor Specific
    #nai_realm=0,example.com;example.net
    # EAP methods EAP-TLS with certificate and EAP-TTLS/MSCHAPv2 with
    # username/password
    #nai_realm=0,example.org,13[5:6],21[2:4][5:7]









    share|improve this question



























      1












      1








      1








      I'm trying to change the default EAP type in hostapd but I am not able to understand how to do that.



      Here's what I've found reading the hostapd.conf file:



      # NAI Realm information
      # One or more realm can be advertised. Each nai_realm line adds a new realm to
      # the set. These parameters provide information for stations using Interworking
      # network selection to allow automatic connection to a network based on
      # credentials.
      # format: <encoding>,<NAI Realm(s)>[,<EAP Method 1>][,<EAP Method 2>][,...]
      # encoding:
      # 0 = Realm formatted in accordance with IETF RFC 4282
      # 1 = UTF-8 formatted character string that is not formatted in
      # accordance with IETF RFC 4282
      # NAI Realm(s): Semi-colon delimited NAI Realm(s)
      # EAP Method: <EAP Method>[:<[AuthParam1:Val1]>][<[AuthParam2:Val2]>][...]
      # EAP Method types, see:
      # http://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml#eap-numbers-4
      # AuthParam (Table 8-188 in IEEE Std 802.11-2012):
      # ID 2 = Non-EAP Inner Authentication Type
      # 1 = PAP, 2 = CHAP, 3 = MSCHAP, 4 = MSCHAPV2
      # ID 3 = Inner authentication EAP Method Type
      # ID 5 = Credential Type
      # 1 = SIM, 2 = USIM, 3 = NFC Secure Element, 4 = Hardware Token,
      # 5 = Softoken, 6 = Certificate, 7 = username/password, 9 = Anonymous,
      # 10 = Vendor Specific
      #nai_realm=0,example.com;example.net
      # EAP methods EAP-TLS with certificate and EAP-TTLS/MSCHAPv2 with
      # username/password
      #nai_realm=0,example.org,13[5:6],21[2:4][5:7]









      share|improve this question
















      I'm trying to change the default EAP type in hostapd but I am not able to understand how to do that.



      Here's what I've found reading the hostapd.conf file:



      # NAI Realm information
      # One or more realm can be advertised. Each nai_realm line adds a new realm to
      # the set. These parameters provide information for stations using Interworking
      # network selection to allow automatic connection to a network based on
      # credentials.
      # format: <encoding>,<NAI Realm(s)>[,<EAP Method 1>][,<EAP Method 2>][,...]
      # encoding:
      # 0 = Realm formatted in accordance with IETF RFC 4282
      # 1 = UTF-8 formatted character string that is not formatted in
      # accordance with IETF RFC 4282
      # NAI Realm(s): Semi-colon delimited NAI Realm(s)
      # EAP Method: <EAP Method>[:<[AuthParam1:Val1]>][<[AuthParam2:Val2]>][...]
      # EAP Method types, see:
      # http://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml#eap-numbers-4
      # AuthParam (Table 8-188 in IEEE Std 802.11-2012):
      # ID 2 = Non-EAP Inner Authentication Type
      # 1 = PAP, 2 = CHAP, 3 = MSCHAP, 4 = MSCHAPV2
      # ID 3 = Inner authentication EAP Method Type
      # ID 5 = Credential Type
      # 1 = SIM, 2 = USIM, 3 = NFC Secure Element, 4 = Hardware Token,
      # 5 = Softoken, 6 = Certificate, 7 = username/password, 9 = Anonymous,
      # 10 = Vendor Specific
      #nai_realm=0,example.com;example.net
      # EAP methods EAP-TLS with certificate and EAP-TTLS/MSCHAPv2 with
      # username/password
      #nai_realm=0,example.org,13[5:6],21[2:4][5:7]






      wifi configuration hostapd 802.1x wpa2-eap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 8 '17 at 18:59









      dirkt

      16.9k21336




      16.9k21336










      asked Apr 7 '17 at 17:10









      JohnLockeJohnLocke

      182




      182






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You handle different EAP types in the eap_user_file not in the hostapd.conf. An example with details is available from the master repo at http://w1.fi/cgit/hostap/tree/hostapd/hostapd.eap_user






          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',
            autoActivateHeartbeat: false,
            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%2f356634%2fchange-default-eap-type-in-hostapd%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









            0














            You handle different EAP types in the eap_user_file not in the hostapd.conf. An example with details is available from the master repo at http://w1.fi/cgit/hostap/tree/hostapd/hostapd.eap_user






            share|improve this answer




























              0














              You handle different EAP types in the eap_user_file not in the hostapd.conf. An example with details is available from the master repo at http://w1.fi/cgit/hostap/tree/hostapd/hostapd.eap_user






              share|improve this answer


























                0












                0








                0







                You handle different EAP types in the eap_user_file not in the hostapd.conf. An example with details is available from the master repo at http://w1.fi/cgit/hostap/tree/hostapd/hostapd.eap_user






                share|improve this answer













                You handle different EAP types in the eap_user_file not in the hostapd.conf. An example with details is available from the master repo at http://w1.fi/cgit/hostap/tree/hostapd/hostapd.eap_user







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 22 at 14:27









                singesinge

                1




                1






























                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f356634%2fchange-default-eap-type-in-hostapd%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

                    How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

                    is 'sed' thread safe

                    How to make a Squid Proxy server?