Blame SOURCES/freeradius-radtest-should-use-Cleartext-Password-for-EAP.patch

44d58a
From 362533a64646cce89799ba0759d4304b8de1e917 Mon Sep 17 00:00:00 2001
44d58a
From: "Alan T. DeKok" <aland@freeradius.org>
44d58a
Date: Tue, 7 Mar 2017 09:22:10 -0500
44d58a
Subject: [PATCH] radtest should use Cleartext-Password for EAP
44d58a
44d58a
(cherry picked from commit 0251c6c9d049f06c8f10974f9e67ef8142b17047)
44d58a
---
44d58a
 src/main/radtest.in                | 2 +-
44d58a
 src/modules/rlm_eap/radeapclient.c | 1 +
44d58a
 2 files changed, 2 insertions(+), 1 deletion(-)
44d58a
44d58a
diff --git a/src/main/radtest.in b/src/main/radtest.in
44d58a
index 7f009ae68..38b1ba9a0 100644
44d58a
--- a/src/main/radtest.in
44d58a
+++ b/src/main/radtest.in
44d58a
@@ -81,7 +81,7 @@ do
44d58a
 				PASSWORD="MS-CHAP-Password"
44d58a
 				;;
44d58a
 			eap-md5)
44d58a
-				PASSWORD="User-Password"
44d58a
+				PASSWORD="Cleartext-Password"
44d58a
 				if [ ! -x "$radeapclient" ]
44d58a
 				then
44d58a
 				    echo "radtest: No 'radeapclient' program was found.  Cannot perform EAP-MD5." >&1
44d58a
diff --git a/src/modules/rlm_eap/radeapclient.c b/src/modules/rlm_eap/radeapclient.c
44d58a
index 020d252f1..ff69361e4 100644
44d58a
--- a/src/modules/rlm_eap/radeapclient.c
44d58a
+++ b/src/modules/rlm_eap/radeapclient.c
44d58a
@@ -468,6 +468,7 @@ static int rc_init_packet(rc_transaction_t *trans)
44d58a
 		/*
44d58a
 		 *	Keep a copy of the the password attribute.
44d58a
 		 */
44d58a
+		case PW_CLEARTEXT_PASSWORD:
44d58a
 		case PW_USER_PASSWORD:
44d58a
 		case PW_CHAP_PASSWORD:
44d58a
 		case PW_MS_CHAP_PASSWORD:
44d58a
-- 
44d58a
2.11.0
44d58a