From: Phil Mayers
Date: Tue, 19 Apr 2011 14:24:11 +0000 (+0100)
Subject: DEBUG message changes to make it more obvious which authentication has failed if...
X-Git-Tag: release_3_0_0_beta0~836
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d1dddb41e7872ed926cb62729aee2d9aad5d589;p=thirdparty%2Ffreeradius-server.git
DEBUG message changes to make it more obvious which authentication has failed if we are proxying PEAP/TTLS inner
---
diff --git a/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c b/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c
index 767f5388871..53fba8498e7 100644
--- a/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c
+++ b/src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c
@@ -327,7 +327,7 @@ static int mschap_postproxy(EAP_HANDLER *handler, void *tunnel_data)
*/
switch (handler->request->reply->code) {
case PW_AUTHENTICATION_ACK:
- DEBUG(" rlm_eap_mschapv2: Authentication succeeded.");
+ DEBUG(" rlm_eap_mschapv2: Proxied authentication succeeded.");
/*
* Move the attribute, so it doesn't go into
* the reply.
@@ -339,7 +339,7 @@ static int mschap_postproxy(EAP_HANDLER *handler, void *tunnel_data)
default:
case PW_AUTHENTICATION_REJECT:
- DEBUG(" rlm_eap_mschapv2: Authentication did not succeed.");
+ DEBUG(" rlm_eap_mschapv2: Proxied authentication did not succeed.");
return 0;
}
@@ -347,7 +347,7 @@ static int mschap_postproxy(EAP_HANDLER *handler, void *tunnel_data)
* No response, die.
*/
if (!response) {
- radlog(L_ERR, "rlm_eap_mschapv2: No MS-CHAPv2-Success or MS-CHAP-Error was found.");
+ radlog(L_ERR, "rlm_eap_mschapv2: Proxied reply contained no MS-CHAPv2-Success or MS-CHAP-Error");
return 0;
}
@@ -641,6 +641,8 @@ packet_ready:
char *username = NULL;
eap_tunnel_data_t *tunnel;
+ DEBUG2("rlm_eap_mschapv2: cancelling authentication and letting it be proxied");
+
/*
* Set up the callbacks for the tunnel
*/