From: Alan T. DeKok Date: Wed, 13 Jun 2012 08:41:51 +0000 (+0200) Subject: Clarify error messages X-Git-Tag: release_2_2_0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcc5543c03a0e121edae426f2473b844c2d98b74;p=thirdparty%2Ffreeradius-server.git Clarify error messages --- diff --git a/src/modules/rlm_mschap/rlm_mschap.c b/src/modules/rlm_mschap/rlm_mschap.c index 918befe44db..065b25466c9 100644 --- a/src/modules/rlm_mschap/rlm_mschap.c +++ b/src/modules/rlm_mschap/rlm_mschap.c @@ -1116,11 +1116,11 @@ static int mschap_authenticate(void * instance, REQUEST *request) * response */ if (response->vp_octets[1] & 0x01) { - RDEBUG2("Told to do MS-CHAPv1 with NT-Password"); + RDEBUG2("Client is using MS-CHAPv1 with NT-Password"); password = nt_password; offset = 26; } else { - RDEBUG2("Told to do MS-CHAPv1 with LM-Password"); + RDEBUG2("Client is using MS-CHAPv1 with LM-Password"); password = lm_password; offset = 2; } @@ -1234,7 +1234,7 @@ static int mschap_authenticate(void * instance, REQUEST *request) username_string, /* user name */ mschapv1_challenge); /* resulting challenge */ - RDEBUG2("Told to do MS-CHAPv2 for %s with NT-Password", + RDEBUG2("Client is using MS-CHAPv2 for %s, we need NT-Password", username_string); if (do_mschap(inst, request, nt_password, mschapv1_challenge, @@ -1256,7 +1256,7 @@ static int mschap_authenticate(void * instance, REQUEST *request) sizeof(buffer) - 12 - i*2, "%02x", fr_rand() & 0xff); } - snprintf(buffer + 12 + 32, sizeof(buffer) - 45, + snprintf(buffer + 45, sizeof(buffer) - 45, " V=3 M=%s", inst->retry_msg); } mschap_add_reply(request, &request->reply->vps,