NetBSD Problem Report #57634

From www@netbsd.org  Fri Sep 29 09:01:28 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id B41181A9238
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 29 Sep 2023 09:01:28 +0000 (UTC)
Message-Id: <20230929090127.5EEC21A9239@mollari.NetBSD.org>
Date: Fri, 29 Sep 2023 09:01:27 +0000 (UTC)
From: nebbionegiuseppe@gmail.com
Reply-To: nebbionegiuseppe@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Correction Needed in wpa_supplicant.conf File for Eduroam Connection
X-Send-Pr-Version: www-1.0

>Number:         57634
>Category:       misc
>Synopsis:       Correction Needed in wpa_supplicant.conf File for Eduroam Connection
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gutteridge
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 29 09:05:00 +0000 2023
>Closed-Date:    Tue Oct 03 00:55:49 +0000 2023
>Last-Modified:  Tue Oct 03 00:55:49 +0000 2023
>Originator:     Giuseppe
>Release:        NetBSD 9.3 on amd64
>Organization:
>Environment:
>Description:
The configuration file located at /usr/share/examples/wpa_supplicant/wpa_supplicant.conf contains an error pertaining to connecting to the Eduroam network using PEAP authentication. The error is found in the following line:

    phase2="auth=MSCHAPv2"

The correct string should be:

    phase2="auth=MSCHAPV2"

Please note the uppercase "V" in "MSCHAPV2."

For more information, please refer to the following resources:

1. [Getting WiFi Network to Work: Eduroam](https://www.unitedbsd.com/d/1155-getting-wifi-network-to-work-eduroam)
2. [Unsupported Phase2 EAP Method](https://hostap.shmoo.narkive.com/1eMmyfDf/why-unsupported-phase2-eap-method)
>How-To-Repeat:
To replicate the issue described in the bug report, follow these steps:

1. **Locate the Configuration File:**
   Access the wpa_supplicant.conf file located at `/usr/share/examples/wpa_supplicant/wpa_supplicant.conf`.

2. **Identify the Incorrect Line:**
   Look for the line in the file that contains the following string:
   ```
   phase2="auth=MSCHAPv2"
   ```

3. **Attempt to Connect to Eduroam:**
   Use the configuration file to connect to the Eduroam network using PEAP authentication with the incorrect setting.

   Depending on your system, you can use a command like `wpa_supplicant -i interface -c /usr/share/examples/wpa_supplicant/wpa_supplicant.conf` to attempt the connection, replacing "interface" with the appropriate network interface name.

4. **Observe Connection Failure:**
   During the connection attempt, the system will likely fail to connect to the Eduroam network due to the incorrect phase2 authentication method specified in the configuration file.

By following these steps, you should be able to replicate the problem and observe the connection failure caused by the incorrect setting "MSCHAPv2" instead of the correct "MSCHAPV2".
>Fix:
To fix the problem described in the bug report, follow these steps:

1. **Open the Configuration File:**
   Use a text editor to open the wpa_supplicant.conf file located at `/usr/share/examples/wpa_supplicant/wpa_supplicant.conf`.

2. **Correct the Authentication Method:**
   Locate the line containing the incorrect phase2 authentication method:
   ```plaintext
   phase2="auth=MSCHAPv2"
   ```

   Change it to the correct format with an uppercase "V":
   ```plaintext
   phase2="auth=MSCHAPV2"
   ```

3. **Save and Close the File:**
   Save the changes you made to the wpa_supplicant.conf file and close the text editor.

4. **Restart the Network Service or Reconnect to the Network:**


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: misc-bug-people->gutteridge
Responsible-Changed-By: gutteridge@NetBSD.org
Responsible-Changed-When: Fri, 29 Sep 2023 14:06:59 +0000
Responsible-Changed-Why:
I'll take this.

From: "David H. Gutteridge" <gutteridge@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57634 CVS commit: src/share/examples/wpa_supplicant
Date: Fri, 29 Sep 2023 14:05:28 +0000

 Module Name:	src
 Committed By:	gutteridge
 Date:		Fri Sep 29 14:05:28 UTC 2023

 Modified Files:
 	src/share/examples/wpa_supplicant: wpa_supplicant.conf

 Log Message:
 wpa_supplicant.conf: fix connection string for Eduroam

 "MSCHAPV2" must have an uppercase "V" in the connection string.
 Reported by nebbionegiuseppe@gmail.com in PR misc/57634.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.4 \
     src/share/examples/wpa_supplicant/wpa_supplicant.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->pending-pullups
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Fri, 29 Sep 2023 14:18:03 +0000
State-Changed-Why:
Pullups submitted for all supported branches.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57634 CVS commit: [netbsd-10] src/share/examples/wpa_supplicant
Date: Mon, 2 Oct 2023 13:33:44 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Oct  2 13:33:44 UTC 2023

 Modified Files:
 	src/share/examples/wpa_supplicant [netbsd-10]: wpa_supplicant.conf

 Log Message:
 Pull up following revision(s) (requested by gutteridge in ticket #384):

 	share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

 wpa_supplicant.conf: fix connection string for Eduroam
 "MSCHAPV2" must have an uppercase "V" in the connection string.

 Reported by nebbionegiuseppe at gmail.com in PR misc/57634.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.3.26.1 \
     src/share/examples/wpa_supplicant/wpa_supplicant.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57634 CVS commit: [netbsd-9] src/share/examples/wpa_supplicant
Date: Mon, 2 Oct 2023 13:34:57 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Oct  2 13:34:57 UTC 2023

 Modified Files:
 	src/share/examples/wpa_supplicant [netbsd-9]: wpa_supplicant.conf

 Log Message:
 Pull up following revision(s) (requested by gutteridge in ticket #1736):

 	share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

 wpa_supplicant.conf: fix connection string for Eduroam
 "MSCHAPV2" must have an uppercase "V" in the connection string.

 Reported by nebbionegiuseppe at gmail.com in PR misc/57634.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.3.18.1 \
     src/share/examples/wpa_supplicant/wpa_supplicant.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57634 CVS commit: [netbsd-8] src/share/examples/wpa_supplicant
Date: Mon, 2 Oct 2023 13:36:06 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Oct  2 13:36:06 UTC 2023

 Modified Files:
 	src/share/examples/wpa_supplicant [netbsd-8]: wpa_supplicant.conf

 Log Message:
 Pull up following revision(s) (requested by gutteridge in ticket #1899):

 	share/examples/wpa_supplicant/wpa_supplicant.conf: revision 1.4

 wpa_supplicant.conf: fix connection string for Eduroam
 "MSCHAPV2" must have an uppercase "V" in the connection string.

 Reported by nebbionegiuseppe at gmail.com in PR misc/57634.


 To generate a diff of this commit:
 cvs rdiff -u -r1.3 -r1.3.8.1 \
     src/share/examples/wpa_supplicant/wpa_supplicant.conf

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->closed
State-Changed-By: gutteridge@NetBSD.org
State-Changed-When: Tue, 03 Oct 2023 00:55:49 +0000
State-Changed-Why:
Pulled up to all active release branches. Thanks for the PR!

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.