]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
DEBUG message changes to make it more obvious which authentication has failed if...
authorPhil Mayers <p.mayers@imperial.ac.uk>
Tue, 19 Apr 2011 14:24:11 +0000 (15:24 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 13 May 2011 08:22:45 +0000 (10:22 +0200)
src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c

index 767f53888715009074d70118f9a5049e7ad15bd0..53fba8498e76b041167ed617f5ef363a896122f2 100644 (file)
@@ -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
                 */